summaryrefslogtreecommitdiff
path: root/net/mac80211/sta_info.c
diff options
context:
space:
mode:
authorShyam Saini <mayhs11saini@gmail.com>2017-01-14 04:17:40 +0300
committerDavid S. Miller <davem@davemloft.net>2017-01-14 20:00:00 +0300
commitca4b5eb88aa0da96ede750d8b894e7079612aa65 (patch)
treeb89f666993e3808c06be7b09d31cebd40de12a79 /net/mac80211/sta_info.c
parentf750e82e7fcba219a0b401d75a58d9fbd956744c (diff)
downloadlinux-ca4b5eb88aa0da96ede750d8b894e7079612aa65.tar.xz
cxgb4: Remove redundant memset before memcpy
The region set by the call to memset, immediately overwritten by the subsequent call to memcpy and thus makes the memset redundant. Also remove the memset((&info, 0, sizeof(info)) on line 398 because info is memcpy()'ed to before being used in the loop and it isn't used outside of the loop. Signed-off-by: Shyam Saini <mayhs11saini@gmail.com> Reviewed-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac80211/sta_info.c')
0 files changed, 0 insertions, 0 deletions