Skip to content

Commit 1d8c2d4

Browse files
dpenklergregkh
authored andcommitted
staging: gpib: Fix faulty workaround for assignment in if
This was detected by Coverity. Add the missing assignment in the else branch of the if Reported-by: Kees Bakker <kees@ijzerbout.nl> Fixes: fce7951 ("staging: gpib: Add LPVO DIY USB GPIB driver") Signed-off-by: Dave Penkler <dpenkler@gmail.com> Link: https://lore.kernel.org/r/20241204145713.11889-5-dpenkler@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 80242c4 commit 1d8c2d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ static int usb_gpib_read(gpib_board_t *board,
901901

902902
} else {
903903
/* we are in the closing <DLE><ETX> sequence */
904-
904+
c = nc;
905905
if (c == ETX) {
906906
c = one_char(board, &b);
907907
if (c == ACK) {

0 commit comments

Comments
 (0)