Content-Type: multipart/mixed; boundary="===============3088937884337332150==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [PATCH] drm/i915: fix odd_ptr_err.cocci warnings Date: Sat, 11 Sep 2021 09:14:23 +0800 Message-ID: <20210911011423.GA20571@e8b8198c3ca8> In-Reply-To: <20210910081942.1075038-1-maarten.lankhorst@linux.intel.com> List-Id: --===============3088937884337332150== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kernel test robot drivers/gpu/drm/i915/display/intel_dpt.c:145:6-12: inconsistent IS_ERR and = PTR_ERR on line 146. 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 to IS_ERR that is wrong. Generated by: scripts/coccinelle/tests/odd_ptr_err.cocci CC: Maarten Lankhorst Reported-by: kernel test robot Signed-off-by: kernel test robot --- url: https://github.com/0day-ci/linux/commits/Maarten-Lankhorst/drm-i915= -Add-ww-context-to-intel_dpt_pin/20210910-162231 base: git://anongit.freedesktop.org/drm/drm-tip drm-tip :::::: branch date: 17 hours ago :::::: commit date: 17 hours ago intel_dpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/i915/display/intel_dpt.c +++ b/drivers/gpu/drm/i915/display/intel_dpt.c @@ -143,7 +143,7 @@ struct i915_vma *intel_dpt_pin(struct i9 i915_vma_unpin(vma); = if (IS_ERR(iomem)) { - err =3D PTR_ERR(vma); + err =3D PTR_ERR(iomem); continue; } =20 --===============3088937884337332150==--