Commit cc07fc80 authored by Wolfram Sang's avatar Wolfram Sang Committed by Greg Kroah-Hartman
Browse files

usb: typec: drop check because i2c_unregister_device() is NULL safe

parent f782152b
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1550,7 +1550,6 @@ static void anx7411_i2c_remove(struct i2c_client *client)
	if (plat->workqueue)
		destroy_workqueue(plat->workqueue);

	if (plat->spi_client)
	i2c_unregister_device(plat->spi_client);

	if (plat->typec.role_sw)