From: H Hartley Sweeten Date: Wed, 4 Mar 2015 19:15:30 +0000 (-0700) Subject: staging: comedi: amplc_pci224: (!foo) preferred over (foo == NULL) X-Git-Tag: v4.1-rc1~152^2~138^2~600 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0048b9923daced04ffcb3b9974019b488ce19e8f;p=karo-tx-linux.git staging: comedi: amplc_pci224: (!foo) preferred over (foo == NULL) Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/amplc_pci224.c b/drivers/staging/comedi/drivers/amplc_pci224.c index 88b8c0101c25..8ac35f9fc69f 100644 --- a/drivers/staging/comedi/drivers/amplc_pci224.c +++ b/drivers/staging/comedi/drivers/amplc_pci224.c @@ -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. */