mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 18:13:04 +00:00
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>
This commit is contained in:
parent
1e25101387
commit
59a8914011
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user