diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2017-10-31 15:21:36 +0100 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2017-11-02 00:01:21 +0100 |
commit | bfd9621259970904b25ad198030275328f09ed46 (patch) | |
tree | 6e3dfeffccb03bc180fe16d6d0887abd97690cd1 /drivers/i2c | |
parent | i2c: Make i2c_unregister_device() NULL-aware (diff) | |
download | linux-bfd9621259970904b25ad198030275328f09ed46.tar.xz linux-bfd9621259970904b25ad198030275328f09ed46.zip |
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 <andriy.shevchenko@linux.intel.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-taos-evm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-taos-evm.c b/drivers/i2c/busses/i2c-taos-evm.c index addd90a8cb59..7c7fc01116a1 100644 --- a/drivers/i2c/busses/i2c-taos-evm.c +++ b/drivers/i2c/busses/i2c-taos-evm.c @@ -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); |