]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: fix odd_ptr_err.cocci warnings
authorWu Fengguang <fengguang.wu@intel.com>
Wed, 24 Dec 2014 06:41:39 +0000 (14:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Dec 2014 20:18:09 +0000 (15:18 -0500)
commit7e6ec92663e0fbfef01aa0c62871b4b162515f49
treeb8045551586c133cc0fa859d53322b6827a3bc1b
parentc0a4ffe84d1c17b88ea31b0aa3f25d922a55e024
openvswitch: fix odd_ptr_err.cocci warnings

net/openvswitch/vport-gre.c:188:5-11: inconsistent IS_ERR and PTR_ERR, PTR_ERR on line 189

 PTR_ERR should access the value just tested by IS_ERR

Semantic patch information:
 There can be false positives in the patch case, where it is the call
 IS_ERR that is wrong.

Generated by: scripts/coccinelle/tests/odd_ptr_err.cocci

CC: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/vport-gre.c