platform/chrome: chromeos_laptop - Remove duplicate check
Subsystems (2)
PATCH 1/1 platform/chrome: chromeos_laptop - Remove duplicate check
fwnode_remove_software_node() is aware of invalid input, no need to perform checks in the caller.
Signed-off-by Andy Shevchenko <[email protected]>
--- drivers/platform/chrome/chromeos_laptop.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/platform/chrome/chromeos_laptop.c +1 -2
@@ -780,8 +780,7 @@ chromeos_laptop_prepare_i2c_peripherals(struct chromeos_laptop *cros_laptop,while (--i >=0 ) { i2c_dev = &i2c_peripherals[i]; info = &i2c_dev->board_info; -if (!IS_ERR_OR_NULL (info->fwnode)) -fwnode_remove_software_node (info->fwnode); +fwnode_remove_software_node (info->fwnode); }kfree (i2c_peripherals);return error;
Signature · 1 line
2.47.2
Tzung-Bi Shih
maintainerQuoted 2 lines · Andy Shevchenko
fwnode_remove_software_node()is aware of invalid input, no need to perform checks in the caller.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git for-next
[1/1] platform/chrome: chromeos_laptop - Remove duplicate check
commit: 0c8fe93f4e7767b0e579959de051dcaddd7197fd
Thanks!