platform/x86: intel_cht_int33fe: 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: Heikki Krogerus <heikki.krogerus@linux.intel.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
Родитель
4ecd94b8e1
Коммит
6734489667
|
@ -213,8 +213,7 @@ out_unregister_fusb302:
|
|||
i2c_unregister_device(data->fusb302);
|
||||
|
||||
out_unregister_max17047:
|
||||
if (data->max17047)
|
||||
i2c_unregister_device(data->max17047);
|
||||
i2c_unregister_device(data->max17047);
|
||||
|
||||
device_connections_remove(data->connections);
|
||||
|
||||
|
@ -227,8 +226,7 @@ static int cht_int33fe_remove(struct platform_device *pdev)
|
|||
|
||||
i2c_unregister_device(data->pi3usb30532);
|
||||
i2c_unregister_device(data->fusb302);
|
||||
if (data->max17047)
|
||||
i2c_unregister_device(data->max17047);
|
||||
i2c_unregister_device(data->max17047);
|
||||
|
||||
device_connections_remove(data->connections);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче