summaryrefslogtreecommitdiff
path: root/drivers/media/pci/pt3
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-05-04 21:23:43 +0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-05-04 21:23:43 +0300
commit59a8914011a01e71ae93789f2fca7bea35dc0b60 (patch)
tree64c4ab410572fec7ade072f16826cba75289b14b /drivers/media/pci/pt3
parent1e251013874101e4f1246642dbabf3e231b02a84 (diff)
downloadlinux-59a8914011a01e71ae93789f2fca7bea35dc0b60.tar.xz
media: pt3: no need to check if null for dvb_module_release()
Such check is already there at the routine. So, no need to repeat it outside. Cc: Akihiro Tsukada <tskd08@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/pci/pt3')
-rw-r--r--drivers/media/pci/pt3/pt3.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/media/pci/pt3/pt3.c b/drivers/media/pci/pt3/pt3.c
index b2d9fb976c9a..cbec5c42fcbc 100644
--- a/drivers/media/pci/pt3/pt3.c
+++ b/drivers/media/pci/pt3/pt3.c
@@ -619,10 +619,8 @@ static void pt3_cleanup_adapter(struct pt3_board *pt3, int index)
adap->fe->callback = NULL;
if (adap->fe->frontend_priv)
dvb_unregister_frontend(adap->fe);
- if (adap->i2c_tuner)
- dvb_module_release(adap->i2c_tuner);
- if (adap->i2c_demod)
- dvb_module_release(adap->i2c_demod);
+ dvb_module_release(adap->i2c_tuner);
+ dvb_module_release(adap->i2c_demod);
}
pt3_free_dmabuf(adap);
dvb_dmxdev_release(&adap->dmxdev);