diff options
author | David S. Miller <davem@davemloft.net> | 2009-11-06 07:37:11 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-06 07:37:11 +0100 |
commit | 000ba2e43f33901859fd794bb33c885909d53b3b (patch) | |
tree | 7fe275574bbaadd808fb38a8f24dc93505a0222b /drivers/net/sky2.h | |
parent | pktgen: tx_bytes might be slightly wrong (diff) | |
download | linux-000ba2e43f33901859fd794bb33c885909d53b3b.tar.xz linux-000ba2e43f33901859fd794bb33c885909d53b3b.zip |
net: Fix build warning in sock_bindtodevice().
net/core/sock.c: In function 'sock_setsockopt':
net/core/sock.c:396: warning: 'index' may be used uninitialized in this function
net/core/sock.c:396: note: 'index' was declared here
GCC can't see that all paths initialize index, so just
set it to the default (0) and eliminate the specific
code block that handles the null device name string.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sky2.h')
0 files changed, 0 insertions, 0 deletions