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>
parent
3863dff0
Please register or sign in to comment