mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-05 03:35:52 -04: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:
committed by
Greg Kroah-Hartman
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user