archive mirror
 help / color / mirror / Atom feed
* [PATCH -next v2] usb: isp1760: Fix meaningless check in isp1763_run()
@ 2021-06-11  1:40 Tong Tiangen
  0 siblings, 0 replies; only message in thread
From: Tong Tiangen @ 2021-06-11  1:40 UTC (permalink / raw)
  To: Rui Miguel Silva, Greg Kroah-Hartman
  Cc: linux-usb, linux-kernel, Tong Tiangen

Remove attribution to retval before check, which make it completely
meaningless, and does't check what it was supposed: the return
value of the timed function to set up configuration flag.

Fixes: 60d789f3bfbb ("usb: isp1760: add support for isp1763")
Signed-off-by: Tong Tiangen <>
Tested-by: Rui Miguel Silva <>
Reviewed-by: Rui Miguel Silva <>
 drivers/usb/isp1760/isp1760-hcd.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/usb/isp1760/isp1760-hcd.c b/drivers/usb/isp1760/isp1760-hcd.c
index 016a54ea76f4..27168b4a4ef2 100644
--- a/drivers/usb/isp1760/isp1760-hcd.c
+++ b/drivers/usb/isp1760/isp1760-hcd.c
@@ -1648,7 +1648,6 @@ static int isp1763_run(struct usb_hcd *hcd)
 	retval = isp1760_hcd_set_and_wait(hcd, FLAG_CF, 250 * 1000);
-	retval = 0;
 	if (retval)
 		return retval;

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-11  1:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-11  1:40 [PATCH -next v2] usb: isp1760: Fix meaningless check in isp1763_run() Tong Tiangen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).