Skip to content

Commit

Permalink
drivers/input: fix code errors caught by clang12
Browse files Browse the repository at this point in the history
  • Loading branch information
acuicultor committed Oct 25, 2020
1 parent 8ac78ee commit 3e272d5
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -29,7 +29,7 @@ static struct touch_dma_buf *dma_buffer;
*/
int touch_i2c_continue_read(struct i2c_client* client, unsigned short length, unsigned char *data)
{
int retval;
int retval = 0;
unsigned char retry;
struct i2c_msg msg;

Expand Down Expand Up @@ -63,7 +63,7 @@ int touch_i2c_continue_read(struct i2c_client* client, unsigned short length, un
*/
int touch_i2c_read_block(struct i2c_client* client, u16 addr, unsigned short length, unsigned char *data)
{
int retval;
int retval = 0;
unsigned char retry;
struct i2c_msg msg[2];

Expand Down Expand Up @@ -101,7 +101,7 @@ int touch_i2c_read_block(struct i2c_client* client, u16 addr, unsigned short len
*/
int touch_i2c_continue_write(struct i2c_client* client, unsigned short length, unsigned char *data)
{
int retval;
int retval = 0;
unsigned char retry;
struct i2c_msg msg;

Expand Down Expand Up @@ -134,7 +134,7 @@ int touch_i2c_continue_write(struct i2c_client* client, unsigned short length, u
*/
int touch_i2c_write_block(struct i2c_client* client, u16 addr, unsigned short length, unsigned char const *data)
{
int retval;
int retval = 0;
unsigned char retry;
unsigned char buffer[4];
struct i2c_msg msg[1];
Expand Down

0 comments on commit 3e272d5

Please sign in to comment.