aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-st.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host/ehci-st.c')
-rw-r--r--drivers/usb/host/ehci-st.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/host/ehci-st.c b/drivers/usb/host/ehci-st.c
index ccb4e611001d..f74433aac948 100644
--- a/drivers/usb/host/ehci-st.c
+++ b/drivers/usb/host/ehci-st.c
@@ -158,10 +158,8 @@ static int st_ehci_platform_probe(struct platform_device *dev)
return -ENODEV;
irq = platform_get_irq(dev, 0);
- if (irq < 0) {
- dev_err(&dev->dev, "no irq provided");
+ if (irq < 0)
return irq;
- }
res_mem = platform_get_resource(dev, IORESOURCE_MEM, 0);
if (!res_mem) {
dev_err(&dev->dev, "no memory resource provided");