]> git.ipfire.org Git - thirdparty/linux.git/commit
platform/x86: hp: hp-bioscfg: remove redundant if statement
authorColin Ian King <colin.i.king@gmail.com>
Thu, 7 Nov 2024 11:35:43 +0000 (11:35 +0000)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 12 Nov 2024 09:47:40 +0000 (11:47 +0200)
commit4ceb681f1822819f78b747ddc189479fead43be2
treef9e90e33f2d76334a3b382d4fe59fbba048379eb
parenta8e03d821d6a72a72fdc0ea1809a21e815a3fd19
platform/x86: hp: hp-bioscfg: remove redundant if statement

The if statement performs the same action if the strcmp result is
true or false since there is identical code on both branches. The
if statement is redundant and can be replaced with just one call
to sysfs_remove_group.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20241107113543.17137-1-colin.i.king@gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/hp/hp-bioscfg/passwdobj-attributes.c