Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Wolfram Sang and committed by
Lee Jones
10944222 f68c0a87

+1 -2
+1 -2
drivers/mfd/htc-i2cpld.c
··· 385 385 htcpld = platform_get_drvdata(pdev); 386 386 chip = &htcpld->chip[chip_index]; 387 387 388 - if (chip->client) 389 - i2c_unregister_device(chip->client); 388 + i2c_unregister_device(chip->client); 390 389 } 391 390 392 391 static int htcpld_register_chip_gpio(