Content-Type: multipart/mixed; boundary="===============1488091818994381421==" MIME-Version: 1.0 From: Julia Lawall To: kbuild-all@lists.01.org Subject: [PATCH] usb: phy: phy-gpio-vbus-usb: fix odd_ptr_err.cocci warnings Date: Sat, 28 Dec 2019 22:39:08 +0100 Message-ID: List-Id: --===============1488091818994381421== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kbuild test robot Inconsistent IS_ERR and PTR_ERR on line 291. Generated by: scripts/coccinelle/tests/odd_ptr_err.cocci Fixes: ec84cd4d1bb8 ("usb: phy: phy-gpio-vbus-usb: Convert to GPIO descript= ors") Signed-off-by: kbuild test robot Signed-off-by: Julia Lawall --- tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.g= it gpio-descriptors-usb head: ec84cd4d1bb85874b0ed3f5e4e567fb2ccb956bd commit: ec84cd4d1bb85874b0ed3f5e4e567fb2ccb956bd [6/6] usb: phy: phy-gpio-v= bus-usb: Convert to GPIO descriptors :::::: branch date: 6 hours ago :::::: commit date: 6 hours ago phy-gpio-vbus-usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/usb/phy/phy-gpio-vbus-usb.c +++ b/drivers/usb/phy/phy-gpio-vbus-usb.c @@ -288,7 +288,7 @@ static int gpio_vbus_probe(struct platfo gpio_vbus->pullup_gpiod =3D devm_gpiod_get_optional(dev, "pullup", GPIOD_OUT_LOW); if (IS_ERR(gpio_vbus->pullup_gpiod)) { - err =3D PTR_ERR(gpio_vbus->vbus_gpiod); + err =3D PTR_ERR(gpio_vbus->pullup_gpiod); dev_err(&pdev->dev, "can't request pullup gpio, err: %d\n", err); return err; --===============1488091818994381421==--