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)
commita9e54f4b62dcfed4432a5a89b1cd5903737f6e83
tree5075b2755898e2a3c32ed67c0394e9d6bf296179
parente29c62ffb008829dc8bcc0a2ec438adc25a8255e
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: 4f567b9f8141 ("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