mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
i2c: cht-wc: 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 <[email protected]> Acked-by: Hans de Goede <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
This commit is contained in:
parent
82d5148154
commit
539b7569c5
1 changed files with 1 additions and 2 deletions
|
|
@ -409,8 +409,7 @@ static int cht_wc_i2c_adap_i2c_remove(struct platform_device *pdev)
|
|||
{
|
||||
struct cht_wc_i2c_adap *adap = platform_get_drvdata(pdev);
|
||||
|
||||
if (adap->client)
|
||||
i2c_unregister_device(adap->client);
|
||||
i2c_unregister_device(adap->client);
|
||||
i2c_del_adapter(&adap->adapter);
|
||||
irq_domain_remove(adap->irq_domain);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue