mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 17:43:52 +02:00
gpib: agilent_82357a: Fix the *allocate_private retval check
Change if (retval < 0) return retval; into if (retval) return retval; as it is more fitting in this case. Signed-off-by: Dominik Karol Piątkowski <dominik.karol.piatkowski@protonmail.com> Link: https://patch.msgid.link/20260116174647.317256-3-dominik.karol.piatkowski@protonmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c9627831fb
commit
048b9f4435
|
|
@ -1316,7 +1316,7 @@ static int agilent_82357a_attach(struct gpib_board *board, const struct gpib_boa
|
|||
return -ERESTARTSYS;
|
||||
|
||||
retval = agilent_82357a_allocate_private(board);
|
||||
if (retval < 0) {
|
||||
if (retval) {
|
||||
mutex_unlock(&agilent_82357a_hotplug_lock);
|
||||
return retval;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user