mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
staging: vt6655: device_main: Replace NULL comparison with !x
Replace NULL comparison to resolve checkpatch issue. - x == NULL => !x Signed-off-by: Namrata A Shettar <namrataashettar@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8f4166d888
commit
7cfae24953
1 changed files with 1 additions and 1 deletions
|
@ -477,7 +477,7 @@ static bool device_init_rings(struct vnt_private *priv)
|
||||||
CB_MAX_BUF_SIZE,
|
CB_MAX_BUF_SIZE,
|
||||||
&priv->tx_bufs_dma0,
|
&priv->tx_bufs_dma0,
|
||||||
GFP_ATOMIC);
|
GFP_ATOMIC);
|
||||||
if (priv->tx0_bufs == NULL) {
|
if (!priv->tx0_bufs) {
|
||||||
dev_err(&priv->pcid->dev, "allocate buf dma memory failed\n");
|
dev_err(&priv->pcid->dev, "allocate buf dma memory failed\n");
|
||||||
|
|
||||||
dma_free_coherent(&priv->pcid->dev,
|
dma_free_coherent(&priv->pcid->dev,
|
||||||
|
|
Loading…
Reference in a new issue