]> git.ipfire.org Git - thirdparty/linux.git/commit
gpib: agilent_82357a: Fix the *allocate_private retval check
authorDominik Karol Piątkowski <dominik.karol.piatkowski@protonmail.com>
Fri, 16 Jan 2026 17:47:35 +0000 (17:47 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Jan 2026 15:04:06 +0000 (16:04 +0100)
commit048b9f44350a7fd1e73cd22f5d1f00cc208609fe
tree2e82cf9378a4d75ba3ef03fafdbaf80ad6efb060
parentc9627831fb60300e4fe46467e8c36379c7c3313a
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>
drivers/gpib/agilent_82357a/agilent_82357a.c