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)
commit0ba987181028ab41cdc68fa91b74c98d97b93ff3
treecaa74f975b96a07d78930ee41e81ad6f7d1b7c6b
parent367dc6586d2d9c0c347b567f7efec57f59c376fd
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