summaryrefslogtreecommitdiff
path: root/drivers/gpib
diff options
context:
space:
mode:
authorDominik Karol Piątkowski <dominik.karol.piatkowski@protonmail.com>2026-01-16 17:47:30 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-01-27 16:04:06 +0100
commitc9627831fb60300e4fe46467e8c36379c7c3313a (patch)
tree5a889064716f5f643c89e324b99516abc3919b9c /drivers/gpib
parent62bb2054f9e84ec89c416d4558dbd574c54beddf (diff)
downloadlinux-next-c9627831fb60300e4fe46467e8c36379c7c3313a.tar.gz
linux-next-c9627831fb60300e4fe46467e8c36379c7c3313a.zip
gpib: agilent_82350b: Unify *allocate_private usage
Use the return value of agilent_82350b_allocate_private in calling code as early return value in case of error. Signed-off-by: Dominik Karol Piątkowski <dominik.karol.piatkowski@protonmail.com> Link: https://patch.msgid.link/20260116174647.317256-2-dominik.karol.piatkowski@protonmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpib')
-rw-r--r--drivers/gpib/agilent_82350b/agilent_82350b.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpib/agilent_82350b/agilent_82350b.c b/drivers/gpib/agilent_82350b/agilent_82350b.c
index 01a5bb43cd2d..d55d097aa6f0 100644
--- a/drivers/gpib/agilent_82350b/agilent_82350b.c
+++ b/drivers/gpib/agilent_82350b/agilent_82350b.c
@@ -599,8 +599,9 @@ static int agilent_82350b_generic_attach(struct gpib_board *board,
board->status = 0;
- if (agilent_82350b_allocate_private(board))
- return -ENOMEM;
+ retval = agilent_82350b_allocate_private(board);
+ if (retval)
+ return retval;
a_priv = board->private_data;
a_priv->using_fifos = use_fifos;
tms_priv = &a_priv->tms9914_priv;