All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Staging: emxx_udc: Remove argument test from function
@ 2015-03-01 21:18 Haneen Mohammed
  2015-03-01 22:31 ` [Outreachy kernel] " Julia Lawall
  2015-03-02  1:01 ` Greg KH
  0 siblings, 2 replies; 3+ messages in thread
From: Haneen Mohammed @ 2015-03-01 21:18 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: Haneen Mohammed

This patch removes the test statement for an argument to  _nbu2ss_pullup function,
for it can't be null due to previous derefrences when its called.

Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com>
---
 drivers/staging/emxx_udc/emxx_udc.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc.c
index 0bfd268..b2a89a6 100644
--- a/drivers/staging/emxx_udc/emxx_udc.c
+++ b/drivers/staging/emxx_udc/emxx_udc.c
@@ -2257,11 +2257,6 @@ static int _nbu2ss_pullup(struct nbu2ss_udc *udc, int is_on)
 {
 	u32	reg_dt;
 
-	if (!udc) {
-		pr_err("udc: %s, bad param\n", __func__);
-		return -EINVAL;
-	}
-
 	if (udc->vbus_active == 0)
 		return -ESHUTDOWN;
 
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-03-02  1:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-01 21:18 [PATCH] Staging: emxx_udc: Remove argument test from function Haneen Mohammed
2015-03-01 22:31 ` [Outreachy kernel] " Julia Lawall
2015-03-02  1:01 ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.