projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d7a564
)
hwmon: (w83793) Saving negative errors in unsigned
author
Dan Carpenter
<error27@gmail.com>
Mon, 29 Mar 2010 20:03:03 +0000
(22:03 +0200)
committer
Jean Delvare
<khali@linux-fr.org>
Mon, 29 Mar 2010 20:03:03 +0000
(22:03 +0200)
"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>
drivers/hwmon/w83793.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hwmon/w83793.c
b/drivers/hwmon/w83793.c
index 9de81a4c15a2127b774766bda5244bf519d750cf..612807d9715533b3f03afcdf6738fb79767ee55e 100644
(file)
--- 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;
+ s
s
ize_t ret;
struct w83793_data *data = filp->private_data;
if (count) {