]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
[media] c8sectpfe: Combine three checks into a single if block
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 5 Nov 2015 18:23:50 +0000 (16:23 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 19 Nov 2015 12:10:22 +0000 (10:10 -0200)
commit1ea7252d978637dca24f89c72dee887fe2bef689
tree82bc5e1fa5e2f6ce89ceb429bab10e6b6a0ab88c
parent06b6fea859caa909e4e89551da9c1162c55efbc3
[media] c8sectpfe: Combine three checks into a single if block

The variable "tsin" was checked three times in a loop iteration of the
c8sectpfe_tuner_unregister_frontend() function.
This implementation detail could be improved by the combination of the
involved statements into a single if block so that this variable will be
checked only once there.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/sti/c8sectpfe/c8sectpfe-common.c