Skip to contentSkip to conversation

s5p-mfc: Use NULL instead of 0 for pointer

PATCH In review Sachin Kamat 2 participants 2 messages Jan 14, 2013 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

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

---
 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
index b4c1943..10f8ac3 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
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 pointer

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
index b4c1943..10f8ac3 100644
@@ -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;
 	}