Skip to content

Commit

Permalink
V4L/DVB: cx25821: fix coding style issues in cx25821-i2c.c
Browse files Browse the repository at this point in the history
Fixes up warnings and errors found by the checkpatch.pl tool
on cx25821-i2c.c

Signed-off-by: Olimpiu Pascariu <olimpiu.pascariu@gmail.com>
Cc: Palash Bandyopadhyay <palash.bandyopadhyay@conexant.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Olimpiu Pascariu authored and Mauro Carvalho Chehab committed May 18, 2010
1 parent 0dd8be8 commit 51e9dd3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/staging/cx25821/cx25821-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ static int i2c_sendbytes(struct i2c_adapter *i2c_adap,

return msg->len;

eio:
eio:
retval = -EIO;
err:
err:
if (i2c_debug)
printk(KERN_ERR " ERR: %d\n", retval);
return retval;
Expand Down Expand Up @@ -223,9 +223,9 @@ static int i2c_readbytes(struct i2c_adapter *i2c_adap,
}

return msg->len;
eio:
eio:
retval = -EIO;
err:
err:
if (i2c_debug)
printk(KERN_ERR " ERR: %d\n", retval);
return retval;
Expand Down Expand Up @@ -266,7 +266,7 @@ static int i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num)
}
return num;

err:
err:
return retval;
}

Expand Down Expand Up @@ -319,7 +319,7 @@ int cx25821_i2c_register(struct cx25821_i2c *bus)

bus->i2c_client.adapter = &bus->i2c_adap;

//set up the I2c
/* set up the I2c */
bus->i2c_client.addr = (0x88 >> 1);

return bus->i2c_rc;
Expand Down

0 comments on commit 51e9dd3

Please sign in to comment.