bareudp: Fix uninitialized variable warnings.
authorDavid S. Miller <davem@davemloft.net>
Mon, 24 Feb 2020 22:40:54 +0000 (14:40 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Feb 2020 22:40:54 +0000 (14:40 -0800)
commitc102b6fddcab89cc6a17c43f8b731e2c9f29b88a
tree43e528499a93cdae59e3e253404e5ebda0540b6b
parent8bf2464c47f040d9325724ac8ac4fe6ef55e2f83
bareudp: Fix uninitialized variable warnings.

drivers/net/bareudp.c: In function 'bareudp_xmit_skb':
drivers/net/bareudp.c:346:9: warning: 'err' may be used uninitialized in this function [-Wmaybe-uninitialized]
  346 |  return err;
      |         ^~~
drivers/net/bareudp.c: In function 'bareudp6_xmit_skb':
drivers/net/bareudp.c:407:9: warning: 'err' may be used uninitialized in this function [-Wmaybe-uninitialized]
  407 |  return err;

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bareudp.c