]> git.baikalelectronics.ru Git - kernel.git/commit
AMD_SFH: Removed unused activecontrolstatus member from the amd_mp2_dev struct
authorHans de Goede <hdegoede@redhat.com>
Thu, 28 Jan 2021 12:12:17 +0000 (13:12 +0100)
committerJiri Kosina <jkosina@suse.cz>
Mon, 8 Mar 2021 15:32:32 +0000 (16:32 +0100)
commit52d2b55a6d09331f4c965d9f3e9011640ea1f56b
tree5075b2755898e2a3c32ed67c0394e9d6bf296179
parenta66f85a49b73d0aa6e29d5a1c96b57e19d770e27
AMD_SFH: Removed unused activecontrolstatus member from the amd_mp2_dev struct

This value is only used once inside amd_mp2_get_sensor_num(),
so there is no need to store this in the amd_mp2_dev struct,
amd_mp2_get_sensor_num() can simple use a local variable for this.

Fixes: 0bb5450b3c9c ("SFH: PCIe driver to add support of AMD sensor fusion hub")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Sandeep Singh <sandeep.singh@amd.com
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/amd-sfh-hid/amd_sfh_pcie.c
drivers/hid/amd-sfh-hid/amd_sfh_pcie.h