diff options
Diffstat (limited to 'drivers/macintosh')
-rw-r--r-- | drivers/macintosh/windfarm_smu_sat.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/macintosh/windfarm_smu_sat.c b/drivers/macintosh/windfarm_smu_sat.c index 7f2be4baaeda..7847e981ac33 100644 --- a/drivers/macintosh/windfarm_smu_sat.c +++ b/drivers/macintosh/windfarm_smu_sat.c | |||
@@ -87,11 +87,12 @@ struct smu_sdbp_header *smu_sat_get_sdb_partition(unsigned int sat_id, int id, | |||
87 | return NULL; | 87 | return NULL; |
88 | } | 88 | } |
89 | 89 | ||
90 | len = i2c_smbus_read_word_data(&sat->i2c, 9); | 90 | err = i2c_smbus_read_word_data(&sat->i2c, 9); |
91 | if (len < 0) { | 91 | if (err < 0) { |
92 | printk(KERN_ERR "smu_sat_get_sdb_part rd len error\n"); | 92 | printk(KERN_ERR "smu_sat_get_sdb_part rd len error\n"); |
93 | return NULL; | 93 | return NULL; |
94 | } | 94 | } |
95 | len = err; | ||
95 | if (len == 0) { | 96 | if (len == 0) { |
96 | printk(KERN_ERR "smu_sat_get_sdb_part no partition %x\n", id); | 97 | printk(KERN_ERR "smu_sat_get_sdb_part no partition %x\n", id); |
97 | return NULL; | 98 | return NULL; |