]> 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)
commitf3608d98f5ad05eab04b0e74bd2f46c18f4c3b53
tree5075b2755898e2a3c32ed67c0394e9d6bf296179
parenta9121153cf8ce9aa0f5fff0651f653b58cf88280
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: 1f4ff354fa3a ("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