Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 10944222 authored by Wolfram Sang's avatar Wolfram Sang Committed by Lee Jones
Browse files

mfd: htc-i2cpld: Drop check because i2c_unregister_device() is NULL safe



No need to check the argument of i2c_unregister_device() because the
function itself does it.

Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent f68c0a87
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -385,7 +385,6 @@ static void htcpld_unregister_chip_i2c(
	htcpld = platform_get_drvdata(pdev);
	chip = &htcpld->chip[chip_index];

	if (chip->client)
	i2c_unregister_device(chip->client);
}