• David S. Miller's avatar
    net: Fix build warning in sock_bindtodevice(). · 000ba2e4
    David S. Miller authored
    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: default avatarDavid S. Miller <davem@davemloft.net>
    000ba2e4
sock.c 61.1 KB