PTP: fix ptr_ret.cocci warnings
authorkbuild test robot <fengguang.wu@intel.com>
Fri, 27 Jan 2017 21:01:51 +0000 (05:01 +0800)
committerRadim Krčmář <rkrcmar@redhat.com>
Mon, 20 Mar 2017 15:25:06 +0000 (16:25 +0100)
commit49e190ec332e96ba28f24b86f7a92f614707819b
tree960fe9d4f6facc305b51fa9af85144823798a800
parent3863dff0c3dd72984395c93b12383b393c5c3989
PTP: fix ptr_ret.cocci warnings

drivers/ptp/ptp_kvm.c:229:1-3: WARNING: PTR_ERR_OR_ZERO can be used

 Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR

Generated by: scripts/coccinelle/api/ptr_ret.cocci

CC: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
drivers/ptp/ptp_kvm.c