Skip to content

Commit

Permalink
hwmon: (w83793) Saving negative errors in unsigned
Browse files Browse the repository at this point in the history
"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 <error27@gmail.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
  • Loading branch information
Dan Carpenter authored and Jean Delvare committed Mar 29, 2010
1 parent 4d7a564 commit 3f7cd7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/w83793.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3f7cd7e

Please sign in to comment.