mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 23:51:37 +00:00
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>
This commit is contained in:
parent
f40f939917
commit
92c47597db
@ -588,7 +588,6 @@ static void release_attributes_data(void)
|
||||
static int hp_add_other_attributes(int attr_type)
|
||||
{
|
||||
struct kobject *attr_name_kobj;
|
||||
union acpi_object *obj = NULL;
|
||||
int ret;
|
||||
char *attr_name;
|
||||
|
||||
@ -648,7 +647,6 @@ err_other_attr_init:
|
||||
kobject_put(attr_name_kobj);
|
||||
unlock_drv_mutex:
|
||||
mutex_unlock(&bioscfg_drv.mutex);
|
||||
kfree(obj);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user