mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-10 07:10:27 +00:00
media: dvb-frontends: 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 <wsa+renesas@sang-engineering.com> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
b622e46690
commit
4b910840f9
@ -1920,8 +1920,7 @@ static void m88ds3103_remove(struct i2c_client *client)
|
||||
|
||||
dev_dbg(&client->dev, "\n");
|
||||
|
||||
if (dev->dt_client)
|
||||
i2c_unregister_device(dev->dt_client);
|
||||
i2c_unregister_device(dev->dt_client);
|
||||
|
||||
i2c_mux_del_adapters(dev->muxc);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user