From andre@bitwigglers.org Wed Jan 21 09:12:47 2009 From: Andre Haupt Date: Mon, 19 Jan 2009 12:00:16 +0100 Subject: Staging: asus_oled: fix sparse warnings about using plain integer as NULL pointer To: greg@kroah.com Cc: Andre Haupt , sjakub@gmail.com Message-ID: <4a04ce971f98ea8bc9a347790c8c1ad772ebd54d.1232362203.git.andre@bitwigglers.org> Signed-off-by: Andre Haupt Cc: Jakub Schmidtke Signed-off-by: Greg Kroah-Hartman --- drivers/staging/asus_oled/asus_oled.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- a/drivers/staging/asus_oled/asus_oled.c +++ b/drivers/staging/asus_oled/asus_oled.c @@ -56,7 +56,7 @@ MODULE_AUTHOR("Jakub Schmidtke, sjakub@g MODULE_DESCRIPTION("Asus OLED Driver v" ASUS_OLED_VERSION); MODULE_LICENSE("GPL"); -static struct class *oled_class = 0; +static struct class *oled_class = NULL; static int oled_num = 0; static uint start_off = 0; @@ -566,9 +566,9 @@ static int asus_oled_probe(struct usb_in uint16_t dev_width = 0; oled_pack_mode_t pack_mode = PACK_MODE_LAST; 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... dev_err(&interface->dev, "No usb_device_id provided!\n"); return -ENODEV; @@ -611,7 +611,7 @@ static int asus_oled_probe(struct usb_in odev->last_val = 0; odev->buf = NULL; odev->enabled = 1; - odev->dev = 0; + odev->dev = NULL; usb_set_intfdata (interface, odev);