Skip to content
Snippets Groups Projects
Commit 6a0c0d0d authored by Peter Rosin's avatar Peter Rosin Committed by Wolfram Sang
Browse files

i2c: robotfuzz-osif: drop pointless test


In the for-loop test, ret will be either 0 or 1. So, the
comparison is pointless. Drop it, and drop the initializer
which is then also pointless.

Signed-off-by: default avatarPeter Rosin <peda@axentia.se>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 7fb29b95
No related branches found
No related tags found
No related merge requests found
...@@ -62,10 +62,10 @@ static int osif_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, ...@@ -62,10 +62,10 @@ static int osif_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs,
{ {
struct osif_priv *priv = adapter->algo_data; struct osif_priv *priv = adapter->algo_data;
struct i2c_msg *pmsg; struct i2c_msg *pmsg;
int ret = 0; int ret;
int i; int i;
for (i = 0; ret >= 0 && i < num; i++) { for (i = 0; i < num; i++) {
pmsg = &msgs[i]; pmsg = &msgs[i];
if (pmsg->flags & I2C_M_RD) { if (pmsg->flags & I2C_M_RD) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment