Skip to contentSkip to conversation

atxp1: Signed/unsigned char bug fix

PATCH New Greg KH 1 participant 1 message Sep 28, 2006 Hardware monitoring

lore
Share & tools
lore

Greg KH

author
#0 lore raw

PATCH 3/39 atxp1: Signed/unsigned char bug fix

From: Alexey Dobriyan <adobriyan at gmail.com>

vid_to_reg() can return -1 and char can be unsigned.

Signed-off-by Alexey Dobriyan <adobriyan at gmail.com>
Signed-off-by Jean Delvare <khali at linux-fr.org>
Signed-off-by Greg Kroah-Hartman <gregkh at suse.de>
---
 drivers/hwmon/atxp1.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/hwmon/atxp1.c +1 -2
index 728a1e8..ba843f8 100644
@@ -116,8 +116,7 @@ static ssize_t atxp1_storevcore(struct d
 {
 	struct atxp1_data *data;
 	struct i2c_client *client;
-	char vid;
-	char cvid;
+	int vid, cvid;
 	unsigned int vcore;
 
 	client = to_i2c_client(dev);
Signature · 1 line
1.4.2.1