[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1415067694-9473-23-git-send-email-varkabhadram@gmail.com>
Date: Tue, 4 Nov 2014 07:51:29 +0530
From: varkabhadram@...il.com
To: gregkh@...uxfoundation.org, linux-usb@...r.kernel.org
Cc: balbi@...com, stern@...land.harvard.edu,
sergei.shtylyov@...entembedded.com, linux-kernel@...r.kernel.org,
Varka Bhadram <varkabhadram@...il.com>,
Varka Bhadram <varkab@...c.in>
Subject: [PATCH usb v4 22/27] musb: musb_dsps: remove duplicate check on resource
From: Varka Bhadram <varkabhadram@...il.com>
Sanity check on resource happening with devm_ioremap_resource().
Signed-off-by: Varka Bhadram <varkab@...c.in>
---
drivers/usb/musb/musb_dsps.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c
index 48bc09e..965c552 100644
--- a/drivers/usb/musb/musb_dsps.c
+++ b/drivers/usb/musb/musb_dsps.c
@@ -447,9 +447,6 @@ static int dsps_musb_init(struct musb *musb)
int ret;
r = platform_get_resource_byname(parent, IORESOURCE_MEM, "control");
- if (!r)
- return -EINVAL;
-
reg_base = devm_ioremap_resource(dev, r);
if (IS_ERR(reg_base))
return PTR_ERR(reg_base);
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists