Unverified Commit 92c47597 authored by Harshit Mogalapalli's avatar Harshit Mogalapalli Committed by Ilpo Järvinen
Browse files

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: default avatarHarshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Reviewed-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20231113200742.3593548-4-harshit.m.mogalapalli@oracle.com


Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
parent f40f9399
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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 @@ static int hp_add_other_attributes(int attr_type)
	kobject_put(attr_name_kobj);
unlock_drv_mutex:
	mutex_unlock(&bioscfg_drv.mutex);
	kfree(obj);
	return ret;
}