Skip to content
Commit 90849f4d authored by kbuild test robot's avatar kbuild test robot Committed by Jason Gunthorpe
Browse files

RDMA/uverbs: fix ptr_ret.cocci warnings

drivers/infiniband/core/uverbs_cmd.c:1095: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

Fixes: 7106a976

 ("RDMA/uverbs: Make write() handlers return 0 on success")
Signed-off-by: default avatarkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 901018f2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment