s5p-mfc: Use NULL instead of 0 for pointer
PATCH 1/1 s5p-mfc: Use NULL instead of 0 for pointer
Fixes the following warning:drivers/media/platform/s5p-mfc/s5p_mfc_opr.c:56:27: warning:
Using plain integer as NULL pointer
Signed-off-by Sachin Kamat <[email protected]>
--- drivers/media/platform/s5p-mfc/s5p_mfc_opr.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/media/platform/s5p-mfc/s5p_mfc_opr.c +1 -1
@@ -53,7 +53,7 @@ void s5p_mfc_release_priv_buf(struct device *dev, {if (b->virt) {dma_free_coherent (dev, b->size, b->virt, b->dma); - b->virt =0 ; + b->virt =NULL ; b->dma =0 ; b->size =0 ; }
Signature · 1 line
1.7.4.1
Quoted 5 lines · On Mon January 14 2013 11:09:41 Sachin Kamat wrote:
Fixes the following warning:
drivers/media/platform/s5p-mfc/s5p_mfc_opr.c:56:27: warning:
Using plain integer as NULL pointerSigned-off-by Sachin Kamat <[email protected]>
Acked-by Hans Verkuil <[email protected]>
Quoted 18 lines
--- drivers/media/platform/s5p-mfc/s5p_mfc_opr.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/media/platform/s5p-mfc/s5p_mfc_opr.c +1
-1@@ -53,7 +53,7 @@ void s5p_mfc_release_priv_buf(struct device *dev, {if (b->virt) {dma_free_coherent (dev, b->size, b->virt, b->dma); - b->virt =0 ; + b->virt =NULL ; b->dma =0 ; b->size =0 ; }