Skip to content

Commit 92c4759

Browse files
harshimogalapalliij-intel
authored andcommitted
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 <[email protected]> Reviewed-by: Ilpo Järvinen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ilpo Järvinen <[email protected]>
1 parent f40f939 commit 92c4759

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/platform/x86/hp/hp-bioscfg/bioscfg.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,6 @@ static void release_attributes_data(void)
588588
static int hp_add_other_attributes(int attr_type)
589589
{
590590
struct kobject *attr_name_kobj;
591-
union acpi_object *obj = NULL;
592591
int ret;
593592
char *attr_name;
594593

@@ -648,7 +647,6 @@ static int hp_add_other_attributes(int attr_type)
648647
kobject_put(attr_name_kobj);
649648
unlock_drv_mutex:
650649
mutex_unlock(&bioscfg_drv.mutex);
651-
kfree(obj);
652650
return ret;
653651
}
654652

0 commit comments

Comments
 (0)