projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db3912c
)
[media] videobuf-dma-contig: Use NULL instead of plain integer
author
Sachin Kamat
<
[email protected]
>
Thu, 12 Jul 2012 10:39:50 +0000
(07:39 -0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Mon, 30 Jul 2012 23:22:37 +0000
(20:22 -0300)
Fixes the following sparse warning:
drivers/media/video/videobuf-dma-contig.c:59:46:
warning: Using plain integer as NULL pointer
Signed-off-by: Sachin Kamat <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/video/videobuf-dma-contig.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/videobuf-dma-contig.c
b/drivers/media/video/videobuf-dma-contig.c
index f68284655f206d03140424b3afbcbd289ec689bc..3a43ba0959bf15a1a23f7152c03efa6c1449bc78 100644
(file)
--- a/
drivers/media/video/videobuf-dma-contig.c
+++ b/
drivers/media/video/videobuf-dma-contig.c
@@
-56,7
+56,7
@@
static int __videobuf_dc_alloc(struct device *dev,
dev_err(dev, "dma_map_single failed\n");
free_pages_exact(mem->vaddr, mem->size);
- mem->vaddr =
0
;
+ mem->vaddr =
NULL
;
return err;
}
}