All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] [PATCH] atxp1: signed/unsigned char bug
@ 2006-07-24  8:31 Alexey Dobriyan
  2006-07-27 18:20 ` Jean Delvare
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Alexey Dobriyan @ 2006-07-24  8:31 UTC (permalink / raw)
  To: lm-sensors

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

Signed-off-by: Alexey Dobriyan <adobriyan at gmail.com>
---

 drivers/hwmon/atxp1.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- a/drivers/hwmon/atxp1.c
+++ b/drivers/hwmon/atxp1.c
@@ -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);



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-07-27 20:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-24  8:31 [lm-sensors] [PATCH] atxp1: signed/unsigned char bug Alexey Dobriyan
2006-07-27 18:20 ` Jean Delvare
2006-07-27 18:30 ` Alexey Dobriyan
2006-07-27 19:15 ` Sebastian Witt
2006-07-27 20:28 ` Jean Delvare
2006-07-27 20:36 ` Alexey Dobriyan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.