diff options
Diffstat (limited to 'drivers/video/udlfb.c')
-rw-r--r-- | drivers/video/udlfb.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/video/udlfb.c b/drivers/video/udlfb.c index ec03e726c940..d2e5bc3cf969 100644 --- a/drivers/video/udlfb.c +++ b/drivers/video/udlfb.c | |||
@@ -434,10 +434,10 @@ static void dlfb_compress_hline( | |||
434 | 434 | ||
435 | while ((pixel_end > pixel) && | 435 | while ((pixel_end > pixel) && |
436 | (cmd_buffer_end - MIN_RLX_CMD_BYTES > cmd)) { | 436 | (cmd_buffer_end - MIN_RLX_CMD_BYTES > cmd)) { |
437 | uint8_t *raw_pixels_count_byte = 0; | 437 | uint8_t *raw_pixels_count_byte = NULL; |
438 | uint8_t *cmd_pixels_count_byte = 0; | 438 | uint8_t *cmd_pixels_count_byte = NULL; |
439 | const uint16_t *raw_pixel_start = 0; | 439 | const uint16_t *raw_pixel_start = NULL; |
440 | const uint16_t *cmd_pixel_start, *cmd_pixel_end = 0; | 440 | const uint16_t *cmd_pixel_start, *cmd_pixel_end = NULL; |
441 | 441 | ||
442 | prefetchw((void *) cmd); /* pull in one cache line at least */ | 442 | prefetchw((void *) cmd); /* pull in one cache line at least */ |
443 | 443 | ||
@@ -573,7 +573,7 @@ static int dlfb_render_hline(struct dlfb_data *dev, struct urb **urb_ptr, | |||
573 | return 0; | 573 | return 0; |
574 | } | 574 | } |
575 | 575 | ||
576 | int dlfb_handle_damage(struct dlfb_data *dev, int x, int y, | 576 | static int dlfb_handle_damage(struct dlfb_data *dev, int x, int y, |
577 | int width, int height, char *data) | 577 | int width, int height, char *data) |
578 | { | 578 | { |
579 | int i, ret; | 579 | int i, ret; |
@@ -1588,7 +1588,7 @@ static int dlfb_usb_probe(struct usb_interface *interface, | |||
1588 | const struct usb_device_id *id) | 1588 | const struct usb_device_id *id) |
1589 | { | 1589 | { |
1590 | struct usb_device *usbdev; | 1590 | struct usb_device *usbdev; |
1591 | struct dlfb_data *dev = 0; | 1591 | struct dlfb_data *dev = NULL; |
1592 | int retval = -ENOMEM; | 1592 | int retval = -ENOMEM; |
1593 | 1593 | ||
1594 | /* usb initialization */ | 1594 | /* usb initialization */ |