summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarshit Mogalapalli <harshit.m.mogalapalli@oracle.com>2025-07-03 00:05:30 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-07-09 13:11:35 +0200
commit4f7ac4d07a7a42d26af0537b8df69ec1b906c0a7 (patch)
treea07eec16f723549ca43a1cc85fc6cd7799582b54
parentbdfa82f5b8998a6311a8ef0cf89ad413f5cd9ea4 (diff)
staging: gpib: lpvo_usb_gpib: Remove unreachable return statement
usb_gpib_read() has a return statement after if else which is unreachable, clean this up. Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com> Link: https://lore.kernel.org/r/20250703070542.1957371-1-harshit.m.mogalapalli@oracle.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c b/drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
index 3cf5037c0cd2..dd68c4843490 100644
--- a/drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
+++ b/drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
@@ -791,7 +791,6 @@ static int usb_gpib_read(struct gpib_board *board,
return -EIO;
else
return -ETIME;
- return 0;
}
/* allocate buffer for multibyte read */