From: Dan Carpenter Date: Mon, 29 Mar 2010 20:03:03 +0000 (+0200) Subject: hwmon: (w83793) Saving negative errors in unsigned X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=3f7cd7ea9383755eef53f92667c520489165667f;p=openwrt%2Fstaging%2Fblogic.git hwmon: (w83793) Saving negative errors in unsigned "ret" is used to store the return value for watchdog_trigger() and it should be signed for the error handling to work. Signed-off-by: Dan Carpenter Acked-by: Hans de Goede Signed-off-by: Jean Delvare --- diff --git a/drivers/hwmon/w83793.c b/drivers/hwmon/w83793.c index 9de81a4c15a2..612807d97155 100644 --- a/drivers/hwmon/w83793.c +++ b/drivers/hwmon/w83793.c @@ -1294,7 +1294,7 @@ static int watchdog_close(struct inode *inode, struct file *filp) static ssize_t watchdog_write(struct file *filp, const char __user *buf, size_t count, loff_t *offset) { - size_t ret; + ssize_t ret; struct w83793_data *data = filp->private_data; if (count) {