public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: gdm72xx: remove unneeded test
@ 2015-05-27 20:25 Laurent Navet
  2015-05-27 20:30 ` Joe Perches
  2015-05-27 20:46 ` Fabio Estevam
  0 siblings, 2 replies; 12+ messages in thread
From: Laurent Navet @ 2015-05-27 20:25 UTC (permalink / raw)
  To: gregkh; +Cc: benchan, devel, linux-kernel, Laurent Navet

The same code is executed regardless ret value, so this test can be
removed.

Signed-off-by: Laurent Navet <laurent.navet@gmail.com>
---
 drivers/staging/gdm72xx/usb_boot.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/staging/gdm72xx/usb_boot.c b/drivers/staging/gdm72xx/usb_boot.c
index 3ccc447..7f80553 100644
--- a/drivers/staging/gdm72xx/usb_boot.c
+++ b/drivers/staging/gdm72xx/usb_boot.c
@@ -255,8 +255,6 @@ static int em_wait_ack(struct usb_device *usbdev, int send_zlp)
 
 	/*Wait for ACK*/
 	ret = gdm_wibro_recv(usbdev, &ack, sizeof(ack));
-	if (ret < 0)
-		goto out;
 out:
 	return ret;
 }
-- 
2.1.4


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

end of thread, other threads:[~2015-05-28 16:33 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-27 20:25 [PATCH] staging: gdm72xx: remove unneeded test Laurent Navet
2015-05-27 20:30 ` Joe Perches
2015-05-28  5:43   ` Julia Lawall
2015-05-28  5:48     ` Joe Perches
2015-05-28 16:21       ` Julia Lawall
2015-05-28 16:33         ` Joe Perches
2015-05-28  7:14   ` Dan Carpenter
2015-05-28  8:06     ` Joe Perches
2015-05-28  8:33       ` Julia Lawall
2015-05-28  8:41         ` Joe Perches
2015-05-27 20:46 ` Fabio Estevam
2015-05-28  7:20   ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox