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 04dde4b..9270f5d 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);