projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db7942b
)
dma-buf: Adjust a null pointer check in dma_buf_attach()
author
Markus Elfring
<elfring@users.sourceforge.net>
Mon, 8 May 2017 08:54:17 +0000
(10:54 +0200)
committer
Sumit Semwal
<sumit.semwal@linaro.org>
Mon, 8 May 2017 15:20:21 +0000
(20:50 +0530)
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
patch
|
blob
|
history
diff --git
a/drivers/dma-buf/dma-buf.c
b/drivers/dma-buf/dma-buf.c
index
9887d72
..
4a038dc
100644
(file)
--- a/
drivers/dma-buf/dma-buf.c
+++ b/
drivers/dma-buf/dma-buf.c
@@
-559,7
+559,7
@@
struct dma_buf_attachment *dma_buf_attach(struct dma_buf *dmabuf,
return ERR_PTR(-EINVAL);
attach = kzalloc(sizeof(*attach), GFP_KERNEL);
- if (
attach == NULL
)
+ if (
!attach
)
return ERR_PTR(-ENOMEM);
attach->dev = dev;