Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e48a3e8 authored by Alexandru Juncu's avatar Alexandru Juncu Committed by Mauro Carvalho Chehab
Browse files

[media] dm1105: remove unneeded not-null test



i2c_adap is a field of a struct and will always be allocated so
its address will never be null.
Suggested by coccinelle, manually verified.

Signed-off-by: default avatarAlexandru Juncu <alexj@rosedu.org>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent c656ead4
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1201,7 +1201,6 @@ static void dm1105_remove(struct pci_dev *pdev)
	dvb_dmxdev_release(&dev->dmxdev);
	dvb_dmx_release(dvbdemux);
	dvb_unregister_adapter(dvb_adapter);
	if (&dev->i2c_adap)
	i2c_del_adapter(&dev->i2c_adap);

	dm1105_hw_exit(dev);