staging: comedi: ni_labpc_common: Reformat multiple line dereference
authorDeepak R Varma <mh12gx2825@gmail.com>
Sun, 22 Mar 2020 18:59:36 +0000 (00:29 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Mar 2020 12:09:45 +0000 (13:09 +0100)
Reformat multi-line dereferencing of function arguments
&cmd->scan_begin_arg. Also reformat another call to the same function to
follow the same argument formatting structure. Problem detected by
checkpatch script.

Signed-off-by: Deepak R Varma <mh12gx2825@gmail.com>
Link: https://lore.kernel.org/r/20200322185932.GA12594@deeUbuntu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_labpc_common.c

index 406952f5521d03137cc1d1ec9557a8538cce0d69..ce0f85026277d42b4b2efda2757dda76a347689c 100644 (file)
@@ -560,14 +560,13 @@ static int labpc_ai_cmdtest(struct comedi_device *dev,
        /* make sure scan timing is not too fast */
        if (cmd->scan_begin_src == TRIG_TIMER) {
                if (cmd->convert_src == TRIG_TIMER) {
-                       err |= comedi_check_trigger_arg_min(&cmd->
-                                                           scan_begin_arg,
-                                                           cmd->convert_arg *
-                                                           cmd->chanlist_len);
+                       err |= comedi_check_trigger_arg_min(
+                                       &cmd->scan_begin_arg,
+                                       cmd->convert_arg * cmd->chanlist_len);
                }
-               err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg,
-                                                   board->ai_speed *
-                                                   cmd->chanlist_len);
+               err |= comedi_check_trigger_arg_min(
+                                       &cmd->scan_begin_arg,
+                                       board->ai_speed * cmd->chanlist_len);
        }
 
        switch (cmd->stop_src) {