platform/x86: hp-bioscfg: fix error reporting in hp_add_other_attributes()
authorDan Carpenter <dan.carpenter@linaro.org>
Tue, 18 Jul 2023 07:06:26 +0000 (10:06 +0300)
committerHans de Goede <hdegoede@redhat.com>
Wed, 26 Jul 2023 14:16:42 +0000 (16:16 +0200)
commitd4e695c016e0d5e15e91c7570ac4eef401b5c771
tree655c70e84d52ea636c75c61dd7dc9c9ba11f7f65
parentb3a8692d2c6632ddaa41ca61544b632c49e75efc
platform/x86: hp-bioscfg: fix error reporting in hp_add_other_attributes()

Return a negative error code instead of returning success.

Fixes: a34fc329b189 ("platform/x86: hp-bioscfg: bioscfg")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/138641cc-52c0-41a5-8176-ad01c7e28c67@moroto.mountain
Reviewed-by: Jorge Lopez <jorge.lopez2@hp.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/hp/hp-bioscfg/bioscfg.c