Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 260456
b: refs/heads/master
c: 07e729c
h: refs/heads/master
v: v3
  • Loading branch information
Tomoya MORINAGA authored and Ben Dooks committed Jul 26, 2011
1 parent f6244c1 commit cb81472
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 7a9c42ccc9fd4317383e55209f825f974e64aa99
refs/heads/master: 07e729ce894487e92405d3b221cffe587420a376
4 changes: 2 additions & 2 deletions trunk/drivers/i2c/busses/i2c-eg20t.c
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ static s32 pch_i2c_xfer(struct i2c_adapter *i2c_adap,
/* transfer not completed */
adap->pch_i2c_xfer_in_progress = true;

for (i = 0; i < num; i++) {
for (i = 0; i < num && ret >= 0; i++) {
pmsg = &msgs[i];
pmsg->flags |= adap->pch_buff_mode_en;
status = pmsg->flags;
Expand All @@ -699,7 +699,7 @@ static s32 pch_i2c_xfer(struct i2c_adapter *i2c_adap,

mutex_unlock(&pch_mutex);

return ret;
return (ret < 0) ? ret : num;
}

/**
Expand Down

0 comments on commit cb81472

Please sign in to comment.