]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: ni_labpc_common: (!foo) preferred over (foo == NULL)
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 4 Mar 2015 19:15:36 +0000 (12:15 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Mar 2015 00:01:29 +0000 (16:01 -0800)
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>
drivers/staging/comedi/drivers/ni_labpc_common.c

index 74518c5645af9d3271fbcfb26cce1fd25f70d77f..0dac8cf312b239052ae76096fa2923d004199fb4 100644 (file)
@@ -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]);