Skip to content

Commit

Permalink
atxp1: Signed/unsigned char bug fix
Browse files Browse the repository at this point in the history
vid_to_reg() can return -1 and char can be unsigned.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Alexey Dobriyan authored and Greg Kroah-Hartman committed Sep 28, 2006
1 parent 563daaf commit c41bdb5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/hwmon/atxp1.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ static ssize_t atxp1_storevcore(struct device *dev, struct device_attribute *att
{
struct atxp1_data *data;
struct i2c_client *client;
char vid;
char cvid;
int vid, cvid;
unsigned int vcore;

client = to_i2c_client(dev);
Expand Down

0 comments on commit c41bdb5

Please sign in to comment.