]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/video/udlfb.c: use NULL instead of 0
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 19 Jun 2013 00:05:27 +0000 (10:05 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:12:42 +0000 (17:12 +1000)
Pointer variables should be initialized with NULL instead of 0.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/video/udlfb.c

index ec03e726c94008791481bfade233e5b384bb2ddb..20353a67fa56be70a3009d1c9329b31c1ab8579d 100644 (file)
@@ -434,10 +434,10 @@ static void dlfb_compress_hline(
 
        while ((pixel_end > pixel) &&
               (cmd_buffer_end - MIN_RLX_CMD_BYTES > cmd)) {
-               uint8_t *raw_pixels_count_byte = 0;
-               uint8_t *cmd_pixels_count_byte = 0;
-               const uint16_t *raw_pixel_start = 0;
-               const uint16_t *cmd_pixel_start, *cmd_pixel_end = 0;
+               uint8_t *raw_pixels_count_byte = NULL;
+               uint8_t *cmd_pixels_count_byte = NULL;
+               const uint16_t *raw_pixel_start = NULL;
+               const uint16_t *cmd_pixel_start, *cmd_pixel_end = NULL;
 
                prefetchw((void *) cmd); /* pull in one cache line at least */
 
@@ -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 */