From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============4940813021766022489==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [PATCH] drm: bridge: fix odd_ptr_err.cocci warnings Date: Mon, 19 Apr 2021 21:30:06 +0800 Message-ID: <20210419133006.GA85881@111d09dd0559> In-Reply-To: <20210419071223.2673533-3-narmstrong@baylibre.com> List-Id: --===============4940813021766022489== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kernel test robot drivers/gpu/drm/bridge/ite-it66121.c:944:5-11: inconsistent IS_ERR and PTR_= ERR on line 946. 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: Phong LE Reported-by: kernel test robot Signed-off-by: kernel test robot --- url: https://github.com/0day-ci/linux/commits/Neil-Armstrong/drm-bridge-= Add-it66121-driver/20210419-151301 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git = bf05bf16c76bb44ab5156223e1e58e26dfe30a88 ite-it66121.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/bridge/ite-it66121.c +++ b/drivers/gpu/drm/bridge/ite-it66121.c @@ -943,7 +943,7 @@ static int it66121_probe(struct i2c_clie ctx->regmap =3D devm_regmap_init_i2c(client, &it66121_regmap_config); if (IS_ERR(ctx->regmap)) { ite66121_power_off(ctx); - return PTR_ERR(ctx); + return PTR_ERR(ctx->regmap); } = regmap_read(ctx->regmap, IT66121_VENDOR_ID0_REG, &vendor_ids[0]); --===============4940813021766022489==--