staging: gpib: Fix faulty workaround for assignment in if
authorDave Penkler <dpenkler@gmail.com>
Wed, 4 Dec 2024 14:57:13 +0000 (15:57 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Dec 2024 15:58:33 +0000 (16:58 +0100)
commit1d8c2d4b89b40f49ef4a70dcb2eaea43695025ce
tree2bf7329f35a05bb41f3cc70119abb7e60d185042
parent80242c4a9d50e71a4df1b7fa19b922ac88aab22b
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: fce79512a96a ("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>
drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c