diff options
author | Jarkko Nikula <jarkko.nikula@linux.intel.com> | 2022-11-07 15:42:40 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2022-11-12 07:37:35 +0100 |
commit | 40015c67533548986eaba42a3d9ba9d004bee41e (patch) | |
tree | 444fb20560842e852735f95b9c7a703ecec9b831 /drivers/i2c | |
parent | 4d827824b7bb29ce944172f6297db6d7a1ec37b3 (diff) | |
download | linux-stable-40015c67533548986eaba42a3d9ba9d004bee41e.tar.gz linux-stable-40015c67533548986eaba42a3d9ba9d004bee41e.tar.bz2 linux-stable-40015c67533548986eaba42a3d9ba9d004bee41e.zip |
i2c: designware: Remove needless initializations from i2c_dw_reg_slave()
These struct dw_i2c_dev members are not used in i2c-designware-slave.c
so remove re-initialization of them from i2c_dw_reg_slave().
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-designware-slave.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/i2c/busses/i2c-designware-slave.c b/drivers/i2c/busses/i2c-designware-slave.c index 84eb0bec70fa..421a604bf68f 100644 --- a/drivers/i2c/busses/i2c-designware-slave.c +++ b/drivers/i2c/busses/i2c-designware-slave.c @@ -78,13 +78,7 @@ static int i2c_dw_reg_slave(struct i2c_client *slave) __i2c_dw_enable(dev); - dev->cmd_err = 0; - dev->msg_write_idx = 0; - dev->msg_read_idx = 0; - dev->msg_err = 0; dev->status = 0; - dev->abort_source = 0; - dev->rx_outstanding = 0; return 0; } |