Skip to content

Commit

Permalink
platform/x86: hp-bioscfg: Remove unused obj in hp_add_other_attributes()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Harshit Mogalapalli authored and Ilpo Järvinen committed Nov 15, 2023
1 parent f40f939 commit 92c4759
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/platform/x86/hp/hp-bioscfg/bioscfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 92c4759

Please sign in to comment.