staging: comedi: amplc_pci224: (!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
e285016076
commit
0048b9923d
@ -838,7 +838,7 @@ static int pci224_ao_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
|
|||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
/* Cannot handle null/empty chanlist. */
|
/* Cannot handle null/empty chanlist. */
|
||||||
if (cmd->chanlist == NULL || cmd->chanlist_len == 0)
|
if (!cmd->chanlist || cmd->chanlist_len == 0)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
/* Determine which channels are enabled and their load order. */
|
/* Determine which channels are enabled and their load order. */
|
||||||
|
Loading…
Reference in New Issue
Block a user