linux/drivers/staging/gpib
Qianfeng Rong 9d78ee44a9 staging: gpib: use int type to store negative error codes
The "ret" variable is used to store the return from bb_write() returns
either zero on success or negative error codes on failure.  Storing the
error codes in size_t which is an unsigned long, doesn't cause an issue
at runtime but it's ugly as pants.  Change "ret" from size_t to int
type.  No effect on runtime.

Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/20250826123208.300145-1-rongqianfeng@vivo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-09-06 15:55:35 +02:00
..
agilent_82350b staging: gpib: Add return value to request_control 2025-04-18 16:49:00 +02:00
agilent_82357a staging: gpib: tidy-up comments 2025-08-19 12:58:19 +02:00
cb7210 staging: gpib: tidy-up comments 2025-08-19 12:58:19 +02:00
cec staging: gpib: tidy-up comments 2025-08-19 12:58:19 +02:00
common staging: gpib: tidy-up comments 2025-08-19 12:58:19 +02:00
eastwood staging: gpib: tidy-up comments 2025-08-19 12:58:19 +02:00
fmh_gpib staging: gpib: tidy-up comments 2025-08-19 12:58:19 +02:00
gpio staging: gpib: use int type to store negative error codes 2025-09-06 15:55:35 +02:00
hp_82335 staging: gpib: Add return value to request_control 2025-04-18 16:49:00 +02:00
hp_82341 staging: gpib: tidy-up comments 2025-08-19 12:58:19 +02:00
include staging: gpib: tidy-up comments 2025-08-19 12:58:19 +02:00
ines staging: gpib: tidy-up comments 2025-08-19 12:58:19 +02:00
lpvo_usb_gpib staging: gpib: lpvo_usb_gpib: Remove unreachable return statement 2025-07-09 13:11:35 +02:00
nec7210 staging: gpib: tidy-up comments 2025-08-19 12:58:19 +02:00
ni_usb staging: gpib: tidy-up comments 2025-08-19 12:58:19 +02:00
pc2 staging: gpib: tidy-up comments 2025-08-19 12:58:19 +02:00
tms9914 staging: gpib: tidy-up comments 2025-08-19 12:58:19 +02:00
tnt4882 staging: gpib: tnt4882: Remove redundant header files 2025-09-06 15:54:23 +02:00
uapi staging: gpib: Add bit and byte padding to ioctl structs 2025-06-19 17:32:32 +02:00
Kconfig staging: gpib: Remove dependencies on !X86_PAE 2025-02-19 16:47:25 +01:00
Makefile staging: gpib: Replace custom debug with dev_dbg 2024-11-07 09:27:34 +01:00
TODO staging: gpib: Update TODO 2025-06-19 17:31:52 +02:00