]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: i801: Drop useless masking in i801_access
authorJean Delvare <jdelvare@suse.de>
Tue, 1 Mar 2022 16:28:59 +0000 (17:28 +0100)
committerWolfram Sang <wsa@kernel.org>
Wed, 2 Mar 2022 21:11:42 +0000 (22:11 +0100)
commit8a727d45100b50665b586b28db4d382a2f878f24
tree40725294043c78c113e17349873b9fa5eaede4ca
parentea1831c3e8788cb67f301038e19094e116831659
i2c: i801: Drop useless masking in i801_access

I went all the way back to kernel 2.6.12 and that masking was never
needed. I suppose it was there in anticipation of software PEC
support, but that was never added to the driver (and never will be,
as this is made obsolete by hardware PEC).

I'm also removing initialization to 0, which is not needed either,
and would prevent the compiler from reporting an actual usage of
uninitialized variables.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Reviewed-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-i801.c