Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123052
b: refs/heads/master
c: 2fd091f
h: refs/heads/master
v: v3
  • Loading branch information
roel kluin authored and Paul Mackerras committed Dec 3, 2008
1 parent 3df0621 commit 3c15f1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e6a437eba09f1c3505bedf7a9a9766a878ca09fa
refs/heads/master: 2fd091f3eebc5accefa5f77ff04436982765d15c
5 changes: 3 additions & 2 deletions trunk/drivers/macintosh/windfarm_smu_sat.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,12 @@ struct smu_sdbp_header *smu_sat_get_sdb_partition(unsigned int sat_id, int id,
return NULL;
}

len = i2c_smbus_read_word_data(&sat->i2c, 9);
if (len < 0) {
err = i2c_smbus_read_word_data(&sat->i2c, 9);
if (err < 0) {
printk(KERN_ERR "smu_sat_get_sdb_part rd len error\n");
return NULL;
}
len = err;
if (len == 0) {
printk(KERN_ERR "smu_sat_get_sdb_part no partition %x\n", id);
return NULL;
Expand Down

0 comments on commit 3c15f1f

Please sign in to comment.