dma-buf: Adjust a null pointer check in dma_buf_attach()
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 8 May 2017 08:54:17 +0000 (10:54 +0200)
committerSumit Semwal <sumit.semwal@linaro.org>
Mon, 8 May 2017 15:20:21 +0000 (20:50 +0530)
commit34d84ec4881d1343bec8c0848fd946e3073e6612
tree41949a9a79aa8b4acc78d3e441b354fecbbd889b
parentdb7942b6292306abd42d3340fdb57d9d80fcffd9
dma-buf: Adjust a null pointer check in dma_buf_attach()

The script "checkpatch.pl" pointed information out like the following.

Comparison to NULL could be written "!attach"

Thus adjust this expression.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
drivers/dma-buf/dma-buf.c