Commit 1d8c2d4b authored by Dave Penkler's avatar Dave Penkler Committed by Greg Kroah-Hartman
Browse files

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: default avatarKees Bakker <kees@ijzerbout.nl>
Fixes: fce79512 ("staging: gpib: Add LPVO DIY USB GPIB driver")
Signed-off-by: default avatarDave Penkler <dpenkler@gmail.com>
Link: https://lore.kernel.org/r/20241204145713.11889-5-dpenkler@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 80242c4a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -901,7 +901,7 @@ static int usb_gpib_read(gpib_board_t *board,

		} else {
			/* we are in the closing <DLE><ETX> sequence */

			c = nc;
			if (c == ETX) {
				c = one_char(board, &b);
				if (c == ACK) {