[PATCH] staging: comedi: drivers: dt3000: Fixes warning on multiline dereference.
From: Sven Luthi
Date: Fri Aug 24 2018 - 17:16:48 EST
Checkpatch complains about a pointer dereference
on line 442-444 being split across multiple lines.
Merged the pointer dereference into one line and moved it
along with the other function call parameters onto the following
line so it would fit without exceeding the 80 character line limit.
Signed-off-by: Sven Luthi <dev@xxxxxxxxxxxxx>
---
drivers/staging/comedi/drivers/dt3000.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/comedi/drivers/dt3000.c b/drivers/staging/comedi/drivers/dt3000.c
index 2edf3ee91300..b3b5fe707659 100644
--- a/drivers/staging/comedi/drivers/dt3000.c
+++ b/drivers/staging/comedi/drivers/dt3000.c
@@ -439,9 +439,8 @@ static int dt3k_ai_cmdtest(struct comedi_device *dev,
if (cmd->scan_begin_src == TRIG_TIMER) {
arg = cmd->convert_arg * cmd->scan_end_arg;
- err |= comedi_check_trigger_arg_min(&cmd->
- scan_begin_arg,
- arg);
+ err |= comedi_check_trigger_arg_min
+ (&cmd->scan_begin_arg, arg);
}
}
--
2.14.1