]> git.baikalelectronics.ru Git - kernel.git/commit
inet: Avoid unitialized variable warning in inet_unhash()
authorGeert Uytterhoeven <geert@linux-m68k.org>
Thu, 1 Feb 2018 10:26:23 +0000 (11:26 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Feb 2018 14:48:42 +0000 (09:48 -0500)
commit312d7ea3930ecd6120d251177e2507f0e8700a46
treecaa74f975b96a07d78930ee41e81ad6f7d1b7c6b
parentc668662e1b1fc84f58b14c0c6e05ceacca4346ea
inet: Avoid unitialized variable warning in inet_unhash()

With gcc-4.1.2:

    net/ipv4/inet_hashtables.c: In function ‘inet_unhash’:
    net/ipv4/inet_hashtables.c:628: warning: ‘ilb’ may be used uninitialized in this function

While this is a false positive, it can easily be avoided by using the
pointer itself as the canary variable.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inet_hashtables.c