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>
---
v3:
- Change `(retval < 0)` to `(retval)`
drivers/gpib/eastwood/fluke_gpib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpib/eastwood/fluke_gpib.c b/drivers/gpib/eastwood/fluke_gpib.c
index 8e315b0e35a2..56153b8a1cb2 100644
--- a/drivers/gpib/eastwood/fluke_gpib.c
+++ b/drivers/gpib/eastwood/fluke_gpib.c
@@ -886,7 +886,7 @@ static int fluke_generic_attach(struct gpib_board *board)
board->status = 0;
retval = fluke_allocate_private(board);
- if (retval < 0)
+ if (retval)
return retval;
e_priv = board->private_data;
nec_priv = &e_priv->nec7210_priv;
--
2.43.0