staging: comedi: kcomedilib_main: (!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
c6be154812
commit
4c36fdde64
|
@ -58,7 +58,7 @@ struct comedi_device *comedi_open(const char *filename)
|
|||
retval = NULL;
|
||||
up_read(&dev->attach_lock);
|
||||
|
||||
if (retval == NULL)
|
||||
if (!retval)
|
||||
comedi_dev_put(dev);
|
||||
|
||||
return retval;
|
||||
|
|
Loading…
Reference in a new issue