Skip to content
Commit ed2ac811 authored by Aishwarya Ramakrishnan's avatar Aishwarya Ramakrishnan Committed by Wolfram Sang
Browse files

i2c: nvidia-gpu: Use PTR_ERR_OR_ZERO() to simplify code



PTR_ERR_OR_ZERO contains if(IS_ERR(...)) + PTR_ERR.

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

Signed-off-by: default avatarAishwarya Ramakrishnan <aishwaryarj100@gmail.com>
Reviewed-by: default avatarAjay Gupta <ajayg@nvidia.com>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent dd4f2ca9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment