ax25: remove unneeded NULL test in ax_xmit()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 5 Mar 2015 17:48:46 +0000 (20:48 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Mar 2015 02:50:42 +0000 (21:50 -0500)
commitfeb27d155dfabcb8baabe10367f25fc2b1bcede1
treed78b81abe2f05d367e90b411473c0ce239a9d389
parentf68a8ebd33d752d3178d1fcae453a14106357c79
ax25: remove unneeded NULL test in ax_xmit()

We get a static checker warning here on devel kernels:

drivers/net/hamradio/mkiss.c:560 ax_xmit()
warn: variable dereferenced before check 'skb' (see line 532)

It turns out that the NULL check can be deleted.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hamradio/mkiss.c