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

Subsystems: framebuffer layer, the rest

STALE4860d

2 messages, 1 author, 2013-05-10 · open the first message on its own page

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

From: Sachin Kamat <hidden>
Date: 2013-05-10 11:50:26

'dev' is a pointer. Use NULL instead of 0.

Signed-off-by: Sachin Kamat <redacted>
---
 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

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

From: Sachin Kamat <hidden>
Date: 2013-05-10 11:55:30

On 10 May 2013 17:08, Sachin Kamat [off-list ref] wrote:
quoted hunk
'dev' is a pointer. Use NULL instead of 0.

Signed-off-by: Sachin Kamat <redacted>
---
 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.

-- 
With warm regards,
Sachin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help