]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: simplify if clause in dev_close
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Mon, 23 Mar 2015 19:23:12 +0000 (16:23 -0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Mar 2015 21:01:58 +0000 (17:01 -0400)
commitfa8005a5d241227c47121b94a56b3a9bb8dd0610
treebec8de4cb748cbfd545b27c45c0280a64979da15
parent14d4854121e6f1da94d8f28081c75dd780a7ffb2
vxlan: simplify if clause in dev_close

Dan Carpenter's static checker warned that in vxlan_stop we are checking
if 'vs' can be NULL while later we simply derreference it.

As after commit 9538361f2727 ("vxlan: Move socket initialization to
within rtnl scope") 'vs' just cannot be NULL in vxlan_stop() anymore, as
the interface won't go up if the socket initialization fails. So we are
good to just remove the check and make it consistent.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c