]> git.baikalelectronics.ru Git - kernel.git/commit
tpm: fix platform_no_drv_owner.cocci warning
authorYang Li <yang.lee@linux.alibaba.com>
Fri, 1 Jul 2022 09:13:22 +0000 (17:13 +0800)
committerJarkko Sakkinen <jarkko@kernel.org>
Wed, 3 Aug 2022 20:56:20 +0000 (23:56 +0300)
commit891a8bd13bc2f5fff4abd55a97fc19443777f9ce
treee39d08efdbfb230d42f3d20cf98e6ee6f84dc43a
parentdee32321c5f862a4a063109d0bd69fd4dd9ccbb3
tpm: fix platform_no_drv_owner.cocci warning

Eliminate the following coccicheck warning:
./drivers/char/tpm/tpm_tis_i2c.c:379:3-8: No need to set .owner here.  The core will do it.

Remove .owner field if calls are used which set it automatically

Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
drivers/char/tpm/tpm_tis_i2c.c