mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 10:02:33 -04:00
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:
committed by
Greg Kroah-Hartman
parent
e285016076
commit
0048b9923d
@@ -838,7 +838,7 @@ static int pci224_ao_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
|
||||
unsigned long flags;
|
||||
|
||||
/* Cannot handle null/empty chanlist. */
|
||||
if (cmd->chanlist == NULL || cmd->chanlist_len == 0)
|
||||
if (!cmd->chanlist || cmd->chanlist_len == 0)
|
||||
return -EINVAL;
|
||||
|
||||
/* Determine which channels are enabled and their load order. */
|
||||
|
||||
Reference in New Issue
Block a user