]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
Staging: asus_oled: fix build warnings
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 4 Jun 2009 18:29:54 +0000 (11:29 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 19 Jun 2009 18:00:55 +0000 (11:00 -0700)
This fixes some build warnings in the asus_oled driver.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/asus_oled/asus_oled.c

index 04dde4b82817c5b9cccb7433bb3f83cc2bfcb78d..9270f5df0204b38a8ca0637614c5e501291bc54f 100644 (file)
@@ -516,7 +516,7 @@ static ssize_t odev_set_picture(struct asus_oled_dev *odev, const char *buf, siz
        max_offs = odev->width * odev->height;
 
        while (offs < count && odev->buf_offs < max_offs) {
-               int ret;
+               int ret = 0;
 
                if (buf[offs] == '1' || buf[offs] == '#') {
                        ret = append_values(odev, 1, 1);