提交 9bacea57 编写于 作者: H H Hartley Sweeten 提交者: Greg Kroah-Hartman

staging: comedi: ni_pcimio: (!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>
上级 4ce82def
...@@ -1183,19 +1183,19 @@ static int pcimio_auto_attach(struct comedi_device *dev, ...@@ -1183,19 +1183,19 @@ static int pcimio_auto_attach(struct comedi_device *dev,
return ret; return ret;
devpriv->ai_mite_ring = mite_alloc_ring(devpriv->mite); devpriv->ai_mite_ring = mite_alloc_ring(devpriv->mite);
if (devpriv->ai_mite_ring == NULL) if (!devpriv->ai_mite_ring)
return -ENOMEM; return -ENOMEM;
devpriv->ao_mite_ring = mite_alloc_ring(devpriv->mite); devpriv->ao_mite_ring = mite_alloc_ring(devpriv->mite);
if (devpriv->ao_mite_ring == NULL) if (!devpriv->ao_mite_ring)
return -ENOMEM; return -ENOMEM;
devpriv->cdo_mite_ring = mite_alloc_ring(devpriv->mite); devpriv->cdo_mite_ring = mite_alloc_ring(devpriv->mite);
if (devpriv->cdo_mite_ring == NULL) if (!devpriv->cdo_mite_ring)
return -ENOMEM; return -ENOMEM;
devpriv->gpct_mite_ring[0] = mite_alloc_ring(devpriv->mite); devpriv->gpct_mite_ring[0] = mite_alloc_ring(devpriv->mite);
if (devpriv->gpct_mite_ring[0] == NULL) if (!devpriv->gpct_mite_ring[0])
return -ENOMEM; return -ENOMEM;
devpriv->gpct_mite_ring[1] = mite_alloc_ring(devpriv->mite); devpriv->gpct_mite_ring[1] = mite_alloc_ring(devpriv->mite);
if (devpriv->gpct_mite_ring[1] == NULL) if (!devpriv->gpct_mite_ring[1])
return -ENOMEM; return -ENOMEM;
if (devpriv->is_m_series) if (devpriv->is_m_series)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册