]> git.baikalelectronics.ru Git - kernel.git/commit
[media] cx231xx: Simplify interface checking logic at probe
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 30 Jan 2011 01:10:56 +0000 (22:10 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 21 Mar 2011 23:31:59 +0000 (20:31 -0300)
commitef0fef1de1df43346bcc21742639695d537ce1ea
treefd48ac9b2cd6fb974f1b9a66ec4ba01c9c362cec
parent4fd585a202bf3845fe9b309fd2eba860d8149783
[media] cx231xx: Simplify interface checking logic at probe

Just a cleanup patch. Removes one indent level by moving
the return -ENODEV to happen before the device register
logic, if the interface is not the audio/video (int 1).

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx231xx/cx231xx-cards.c