mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
i2c: taos-evm: Remove duplicate NULL check
Since i2c_unregister_device() became NULL-aware we may remove duplicate NULL check. Signed-off-by: Andy Shevchenko <[email protected]> Reviewed-by: Jean Delvare <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
This commit is contained in:
parent
7b43dd19c9
commit
bfd9621259
1 changed files with 1 additions and 2 deletions
|
|
@ -282,8 +282,7 @@ static void taos_disconnect(struct serio *serio)
|
|||
{
|
||||
struct taos_data *taos = serio_get_drvdata(serio);
|
||||
|
||||
if (taos->client)
|
||||
i2c_unregister_device(taos->client);
|
||||
i2c_unregister_device(taos->client);
|
||||
i2c_del_adapter(&taos->adapter);
|
||||
serio_close(serio);
|
||||
kfree(taos);
|
||||
|
|
|
|||
Loading…
Reference in a new issue