mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-04 19:54:03 +08:00
staging: vt6655: replace NULL comparison with '!' operator
Fix comparison to NULL issues reported by checkpatch.pl Signed-off-by: Marko Stankovic <dartnorris@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5b5d636221
commit
3621014af3
@ -157,7 +157,7 @@ static void vt6655_remove(struct pci_dev *pcid)
|
|||||||
{
|
{
|
||||||
struct vnt_private *priv = pci_get_drvdata(pcid);
|
struct vnt_private *priv = pci_get_drvdata(pcid);
|
||||||
|
|
||||||
if (priv == NULL)
|
if (!priv)
|
||||||
return;
|
return;
|
||||||
device_free_info(priv);
|
device_free_info(priv);
|
||||||
}
|
}
|
||||||
@ -453,7 +453,7 @@ static bool device_init_rings(struct vnt_private *priv)
|
|||||||
priv->opts.tx_descs[0] * sizeof(struct vnt_tx_desc) +
|
priv->opts.tx_descs[0] * sizeof(struct vnt_tx_desc) +
|
||||||
priv->opts.tx_descs[1] * sizeof(struct vnt_tx_desc),
|
priv->opts.tx_descs[1] * sizeof(struct vnt_tx_desc),
|
||||||
&priv->pool_dma, GFP_ATOMIC);
|
&priv->pool_dma, GFP_ATOMIC);
|
||||||
if (vir_pool == NULL) {
|
if (!vir_pool) {
|
||||||
dev_err(&priv->pcid->dev, "allocate desc dma memory failed\n");
|
dev_err(&priv->pcid->dev, "allocate desc dma memory failed\n");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user