]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
staging: gpib: lpvo_usb_gpib: Remove unreachable return statement
authorHarshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Thu, 3 Jul 2025 07:05:30 +0000 (00:05 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2025 11:11:35 +0000 (13:11 +0200)
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>
drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c

index 3cf5037c0cd2c98465192f9438a5b4093d148ba8..dd68c4843490a9cafc5fe6d155e279cd4295ddd1 100644 (file)
@@ -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 */