Commit 9bacea57 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

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

Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment