summaryrefslogtreecommitdiff
path: root/drivers/usb/phy/phy-rcar-gen2-usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/phy/phy-rcar-gen2-usb.c')
-rw-r--r--drivers/usb/phy/phy-rcar-gen2-usb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/phy/phy-rcar-gen2-usb.c b/drivers/usb/phy/phy-rcar-gen2-usb.c
index 388d89f6b141..f83808413ba2 100644
--- a/drivers/usb/phy/phy-rcar-gen2-usb.c
+++ b/drivers/usb/phy/phy-rcar-gen2-usb.c
@@ -195,10 +195,8 @@ static int rcar_gen2_usb_phy_probe(struct platform_device *pdev)
return PTR_ERR(base);
priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
- if (!priv) {
- dev_err(dev, "Memory allocation failed\n");
+ if (!priv)
return -ENOMEM;
- }
spin_lock_init(&priv->lock);
priv->clk = clk;