[media] USB: Deletion of unnecessary checks before three function calls

GIT_AUTHOR_DATE=1416486805
The functions pvr2_hdw_destroy(), rc_unregister_device() and vfree() perform
also input parameter validation. Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
このコミットが含まれているのは:
Markus Elfring
2014-11-20 09:26:36 -03:00
committed by Mauro Carvalho Chehab
コミット 83f56f7cbd
4個のファイルの変更4行の追加7行の削除

ファイルの表示

@@ -841,8 +841,7 @@ static int em28xx_ir_fini(struct em28xx *dev)
if (!ir)
goto ref_put;
if (ir->rc)
rc_unregister_device(ir->rc);
rc_unregister_device(ir->rc);
kfree(ir->i2c_client);