From: Greg Kroah-Hartman Date: Thu, 4 Jun 2009 18:29:54 +0000 (-0700) Subject: Staging: asus_oled: fix build warnings X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0d99b6eb851fbea9e31ad23f70c8f9fbefd6e4e8;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git Staging: asus_oled: fix build warnings This fixes some build warnings in the asus_oled driver. Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/asus_oled/asus_oled.c b/drivers/staging/asus_oled/asus_oled.c index 04dde4b82817..9270f5df0204 100644 --- a/drivers/staging/asus_oled/asus_oled.c +++ b/drivers/staging/asus_oled/asus_oled.c @@ -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);