projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bea46b9
)
usb: dwc3: meson: fix coccinelle WARNING
author
Felipe Balbi
<balbi@kernel.org>
Thu, 13 Aug 2020 05:09:55 +0000
(08:09 +0300)
committer
Felipe Balbi
<balbi@kernel.org>
Fri, 2 Oct 2020 06:43:35 +0000
(09:43 +0300)
Coccinelle suggests using PTR_ERR_OR_ZERO().
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/dwc3/dwc3-meson-g12a.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/dwc3/dwc3-meson-g12a.c
b/drivers/usb/dwc3/dwc3-meson-g12a.c
index 1f7f4d88ed9d8d1227fde3ce460b3bfe4fc5abf6..8fc7e0b39179fc12566eea91e21961dfe762bb22 100644
(file)
--- a/
drivers/usb/dwc3/dwc3-meson-g12a.c
+++ b/
drivers/usb/dwc3/dwc3-meson-g12a.c
@@
-626,10
+626,7
@@
static int dwc3_meson_gxl_setup_regmaps(struct dwc3_meson_g12a *priv,
/* GXL controls the PHY mode in the PHY registers unlike G12A */
priv->usb_glue_regmap = devm_regmap_init_mmio(priv->dev, base,
&phy_meson_g12a_usb_glue_regmap_conf);
- if (IS_ERR(priv->usb_glue_regmap))
- return PTR_ERR(priv->usb_glue_regmap);
-
- return 0;
+ return PTR_ERR_OR_ZERO(priv->usb_glue_regmap);
}
static int dwc3_meson_g12a_setup_regmaps(struct dwc3_meson_g12a *priv,