Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

platform/x86: hp-bioscfg: Remove unused obj in hp_add_other_attributes()

acpi_object *obj is unused in this function, so delete it, also
delete a unnecessary kfree(obj);

Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20231113200742.3593548-4-harshit.m.mogalapalli@oracle.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

authored by

Harshit Mogalapalli and committed by
Ilpo Järvinen
92c47597 f40f9399

-2
-2
drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
··· 588 588 static int hp_add_other_attributes(int attr_type) 589 589 { 590 590 struct kobject *attr_name_kobj; 591 - union acpi_object *obj = NULL; 592 591 int ret; 593 592 char *attr_name; 594 593 ··· 647 648 kobject_put(attr_name_kobj); 648 649 unlock_drv_mutex: 649 650 mutex_unlock(&bioscfg_drv.mutex); 650 - kfree(obj); 651 651 return ret; 652 652 } 653 653