• Jiri Slaby's avatar
    p54: memset(0) whole array · 6f175817
    Jiri Slaby authored
    gcc 7 complains:
    drivers/net/wireless/intersil/p54/fwio.c: In function 'p54_scan':
    drivers/net/wireless/intersil/p54/fwio.c:491:4: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size]
    
    Fix that by passing the correct size to memset.
    Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
    Cc: Christian Lamparter <chunkeey@googlemail.com>
    Cc: Kalle Valo <kvalo@codeaurora.org>
    Cc: linux-wireless@vger.kernel.org
    Cc: netdev@vger.kernel.org
    Acked-by: default avatarChristian Lamparter <chunkeey@googlemail.com>
    Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
    6f175817
fwio.c 20.9 KB