Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276785
b: refs/heads/master
c: e410471
h: refs/heads/master
i:
  276783: df17a87
v: v3
  • Loading branch information
Axel Lin authored and David S. Miller committed Dec 4, 2011
1 parent e5ae6b9 commit 145a6fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 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: f0a4cf31017ac8179a2fe295c1bd8e821d7674f4
refs/heads/master: e410471029ba99e85af5e2a1e7e747c7b4de2bc3
14 changes: 4 additions & 10 deletions trunk/drivers/sbus/char/bbc_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,13 +233,9 @@ int bbc_i2c_write_buf(struct bbc_i2c_client *client,
int ret = 0;

while (len > 0) {
int err = bbc_i2c_writeb(client, *buf, off);

if (err < 0) {
ret = err;
ret = bbc_i2c_writeb(client, *buf, off);
if (ret < 0)
break;
}

len--;
buf++;
off++;
Expand All @@ -253,11 +249,9 @@ int bbc_i2c_read_buf(struct bbc_i2c_client *client,
int ret = 0;

while (len > 0) {
int err = bbc_i2c_readb(client, buf, off);
if (err < 0) {
ret = err;
ret = bbc_i2c_readb(client, buf, off);
if (ret < 0)
break;
}
len--;
buf++;
off++;
Expand Down

0 comments on commit 145a6fc

Please sign in to comment.