mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
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: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
parent
f68c0a873e
commit
1094422253
@ -385,8 +385,7 @@ static void htcpld_unregister_chip_i2c(
|
||||
htcpld = platform_get_drvdata(pdev);
|
||||
chip = &htcpld->chip[chip_index];
|
||||
|
||||
if (chip->client)
|
||||
i2c_unregister_device(chip->client);
|
||||
i2c_unregister_device(chip->client);
|
||||
}
|
||||
|
||||
static int htcpld_register_chip_gpio(
|
||||
|
Loading…
Reference in New Issue
Block a user