Commit 0c8fe93f authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Tzung-Bi Shih
Browse files

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: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20250630101225.1855431-1-andriy.shevchenko@linux.intel.com


Signed-off-by: default avatarTzung-Bi Shih <tzungbi@kernel.org>
parent 981d7f91
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -782,7 +782,6 @@ 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);
	}
	kfree(i2c_peripherals);