[PATCH 2/2] Staging: common: gpib_os: `request_system_control_ioctl` return value

Thomas Andreatta
2025-05-10T15:38:08Z

`request_system_control_ioctl` now returns the value returned from the
function `ibrsc`, now int.

Signed-off-by: Thomas Andreatta <thomas.andreatta2000@gmail.com>
---
drivers/staging/gpib/common/gpib_os.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/gpib/common/gpib_os.c b/drivers/staging/gpib/common/gpib_os.c
index 8456b97290b8..dddf7a70084d 100644
--- a/drivers/staging/gpib/common/gpib_os.c
+++ b/drivers/staging/gpib/common/gpib_os.c
@@ -1970,9 +1970,9 @@ static int request_system_control_ioctl(struct gpib_board *board, unsigned long
if (retval)
return -EFAULT;

- ibrsc(board, request_control);
+ retval = ibrsc(board, request_control);

- return 0;
+ return retval;
}

static int t1_delay_ioctl(struct gpib_board *board, unsigned long arg)
--
2.34.1