From: Artur Lorincz Date: Sat, 11 Feb 2017 21:08:31 +0000 (+0100) Subject: staging: comedi: fixed multiple line dereference X-Git-Tag: v4.11-rc1~116^2~27 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e3f75db14d4bcef77908084afe1190b557d1b40f;p=linux.git staging: comedi: fixed multiple line dereference Fixed multiple line dereference for &cmd->scan_begin_arg. Signed-off-by: Artur Lorincz Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/adl_pci9118.c b/drivers/staging/comedi/drivers/adl_pci9118.c index 86450c08f291..1cc9b7ef1ff9 100644 --- a/drivers/staging/comedi/drivers/adl_pci9118.c +++ b/drivers/staging/comedi/drivers/adl_pci9118.c @@ -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); } }