mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
platform/x86: panasonic-laptop: remove redundant assignment of variable result
The variable result is being assigned a value that is never read and it is being updated later with a new value. The assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Link: https://lore.kernel.org/r/20210326192022.623001-1-colin.king@canonical.com Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
4d7ddd8d30
commit
f1fba08609
1 changed files with 1 additions and 1 deletions
|
@ -973,7 +973,7 @@ static int acpi_pcc_hotkey_add(struct acpi_device *device)
|
|||
pcc->mute = pcc->sinf[SINF_MUTE];
|
||||
pcc->ac_brightness = pcc->sinf[SINF_AC_CUR_BRIGHT];
|
||||
pcc->dc_brightness = pcc->sinf[SINF_DC_CUR_BRIGHT];
|
||||
result = pcc->current_brightness = pcc->sinf[SINF_CUR_BRIGHT];
|
||||
pcc->current_brightness = pcc->sinf[SINF_CUR_BRIGHT];
|
||||
|
||||
/* add sysfs attributes */
|
||||
result = sysfs_create_group(&device->dev.kobj, &pcc_attr_group);
|
||||
|
|
Loading…
Reference in a new issue