提交 4c36fdde 编写于 作者: H H Hartley Sweeten 提交者: Greg Kroah-Hartman

staging: comedi: kcomedilib_main: (!foo) preferred over (foo == NULL)

Signed-off-by: NH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: NIan Abbott <abbotti@mev.co.uk>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 c6be1548
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册