media: i2c: adv7511-v4l2: drop check because i2c_unregister_device() is NULL safe
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 20 Aug 2019 15:34:40 +0000 (12:34 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 26 Aug 2019 13:44:16 +0000 (10:44 -0300)
commit086c51e2405e75bb5a7575e3bdc784ae14c8a4e6
treefb0d63ca5a7e05b7cdaf25187c31743142aea44a
parenteb0a6fb25c05679d32698c2503ee39bdbbc13663
media: i2c: adv7511-v4l2: 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>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/adv7511-v4l2.c