summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2009-06-04 22:29:54 +0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-06-19 22:00:55 +0400
commit0d99b6eb851fbea9e31ad23f70c8f9fbefd6e4e8 (patch)
tree29e955d9f3384b23a9ddf9136ec1c3f83b54f526
parent04b17c935bb4066bf036b338f46ed253bcf34b70 (diff)
downloadlinux-0d99b6eb851fbea9e31ad23f70c8f9fbefd6e4e8.tar.xz
Staging: asus_oled: fix build warnings
This fixes some build warnings in the asus_oled driver. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/asus_oled/asus_oled.c2
1 files changed, 1 insertions, 1 deletions
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);