net: ipv4: fib_semantics: fix uninitialized variable
authorEnrico Weigelt <info@metux.net>
Thu, 6 Jun 2019 14:43:17 +0000 (16:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 9 Jun 2019 19:47:30 +0000 (12:47 -0700)
commitc3fee640bcf52c34a25b767f2b0eda82e97a1f3b
tree26f378c06975af74eb4dcb4b04d661b328cb2a99
parent38e406f600a2b6dca9c262603f6e2a31cfb792b8
net: ipv4: fib_semantics: fix uninitialized variable

fix an uninitialized variable:

  CC      net/ipv4/fib_semantics.o
net/ipv4/fib_semantics.c: In function 'fib_check_nh_v4_gw':
net/ipv4/fib_semantics.c:1027:12: warning: 'err' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if (!tbl || err) {
            ^~

Signed-off-by: Enrico Weigelt <info@metux.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_semantics.c