staging: comedi: fixed multiple line dereference
authorArtur Lorincz <larturus@yahoo.com>
Sat, 11 Feb 2017 21:08:31 +0000 (22:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Feb 2017 18:17:06 +0000 (10:17 -0800)
Fixed multiple line dereference for &cmd->scan_begin_arg.

Signed-off-by: Artur Lorincz <larturus@yahoo.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/adl_pci9118.c

index 86450c08f2918d461a3f073055a15653ee0a9279..1cc9b7ef1ff9e18be79233d11a482c5af898f99f 100644 (file)
@@ -1279,9 +1279,8 @@ static int pci9118_ai_cmdtest(struct comedi_device *dev,
                        } else {
                                arg = cmd->convert_arg * cmd->chanlist_len;
                        }
-                       err |= comedi_check_trigger_arg_min(&cmd->
-                                                           scan_begin_arg,
-                                                           arg);
+                       err |= comedi_check_trigger_arg_min(
+                               &cmd->scan_begin_arg, arg);
                }
        }