diff mbox

[1/1] video: udlfb: Use NULL instead of 0

Message ID 1368185906-13351-1-git-send-email-sachin.kamat@linaro.org (mailing list archive)
State New, archived
Headers show

Commit Message

Sachin Kamat May 10, 2013, 11:38 a.m. UTC
'dev' is a pointer. Use NULL instead of 0.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 drivers/video/udlfb.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Sachin Kamat May 10, 2013, 11:55 a.m. UTC | #1
On 10 May 2013 17:08, Sachin Kamat <sachin.kamat@linaro.org> wrote:
> 'dev' is a pointer. Use NULL instead of 0.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> ---
>  drivers/video/udlfb.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/video/udlfb.c b/drivers/video/udlfb.c
> index ec03e72..04eadc6 100644
> --- a/drivers/video/udlfb.c
> +++ b/drivers/video/udlfb.c
> @@ -1588,7 +1588,7 @@ static int dlfb_usb_probe(struct usb_interface *interface,
>                         const struct usb_device_id *id)
>  {
>         struct usb_device *usbdev;
> -       struct dlfb_data *dev = 0;
> +       struct dlfb_data *dev = NULL;
>         int retval = -ENOMEM;
>
>         /* usb initialization */
> --
> 1.7.9.5
>

Please ignore this patch. Re-sending with few more fixes.
diff mbox

Patch

diff --git a/drivers/video/udlfb.c b/drivers/video/udlfb.c
index ec03e72..04eadc6 100644
--- a/drivers/video/udlfb.c
+++ b/drivers/video/udlfb.c
@@ -1588,7 +1588,7 @@  static int dlfb_usb_probe(struct usb_interface *interface,
 			const struct usb_device_id *id)
 {
 	struct usb_device *usbdev;
-	struct dlfb_data *dev = 0;
+	struct dlfb_data *dev = NULL;
 	int retval = -ENOMEM;
 
 	/* usb initialization */