[1/1,media] s5p-mfc: Use NULL instead of 0 for pointer
Commit Message
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 <sachin.kamat@linaro.org>
---
drivers/media/platform/s5p-mfc/s5p_mfc_opr.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Comments
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
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
> ---
> drivers/media/platform/s5p-mfc/s5p_mfc_opr.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_opr.c b/drivers/media/platform/s5p-mfc/s5p_mfc_opr.c
> index b4c1943..10f8ac3 100644
> --- a/drivers/media/platform/s5p-mfc/s5p_mfc_opr.c
> +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_opr.c
> @@ -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;
> }
>
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
@@ -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;
}