mirror of https://gitee.com/openkylin/linux.git
staging: comedi: ni_labpc_common: (!foo) preferred over (foo == NULL)
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
77ba71f648
commit
c1bce7fd0d
|
@ -428,7 +428,7 @@ static enum scan_mode labpc_ai_scan_mode(const struct comedi_cmd *cmd)
|
|||
return MODE_SINGLE_CHAN;
|
||||
|
||||
/* chanlist may be NULL during cmdtest */
|
||||
if (cmd->chanlist == NULL)
|
||||
if (!cmd->chanlist)
|
||||
return MODE_MULT_CHAN_UP;
|
||||
|
||||
chan0 = CR_CHAN(cmd->chanlist[0]);
|
||||
|
|
Loading…
Reference in New Issue