Commit ccdb2459 authored by Andre Haupt's avatar Andre Haupt Committed by Greg Kroah-Hartman

Staging: asus_oled: fix sparse warnings about using plain integer as NULL pointer

Signed-off-by: default avatarAndre Haupt <andre@bitwigglers.org>
Cc: Jakub Schmidtke <sjakub@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent cda3b517
...@@ -56,7 +56,7 @@ MODULE_AUTHOR("Jakub Schmidtke, sjakub@gmail.com"); ...@@ -56,7 +56,7 @@ MODULE_AUTHOR("Jakub Schmidtke, sjakub@gmail.com");
MODULE_DESCRIPTION("Asus OLED Driver v" ASUS_OLED_VERSION); MODULE_DESCRIPTION("Asus OLED Driver v" ASUS_OLED_VERSION);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
static struct class *oled_class = 0; static struct class *oled_class = NULL;
static int oled_num = 0; static int oled_num = 0;
static uint start_off = 0; static uint start_off = 0;
...@@ -566,9 +566,9 @@ static int asus_oled_probe(struct usb_interface *interface, const struct usb_dev ...@@ -566,9 +566,9 @@ static int asus_oled_probe(struct usb_interface *interface, const struct usb_dev
uint16_t dev_width = 0; uint16_t dev_width = 0;
oled_pack_mode_t pack_mode = PACK_MODE_LAST; oled_pack_mode_t pack_mode = PACK_MODE_LAST;
const struct oled_dev_desc_str * dev_desc = oled_dev_desc_table; const struct oled_dev_desc_str * dev_desc = oled_dev_desc_table;
const char *desc = 0; const char *desc = NULL;
if (id == 0) { if (!id) {
// Even possible? Just to make sure... // Even possible? Just to make sure...
dev_err(&interface->dev, "No usb_device_id provided!\n"); dev_err(&interface->dev, "No usb_device_id provided!\n");
return -ENODEV; return -ENODEV;
...@@ -611,7 +611,7 @@ static int asus_oled_probe(struct usb_interface *interface, const struct usb_dev ...@@ -611,7 +611,7 @@ static int asus_oled_probe(struct usb_interface *interface, const struct usb_dev
odev->last_val = 0; odev->last_val = 0;
odev->buf = NULL; odev->buf = NULL;
odev->enabled = 1; odev->enabled = 1;
odev->dev = 0; odev->dev = NULL;
usb_set_intfdata (interface, odev); usb_set_intfdata (interface, odev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment