OSDN Git Service

[media] av7110: avoid switch fall through
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 19 May 2017 12:01:24 +0000 (09:01 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 19 May 2017 12:01:24 +0000 (09:01 -0300)
commitc087fe3ec71bad9bcba731c328b0eb6f306c0de6
treea7ad2a5b02fa907348e110fe854c4d372e12d979
parent4c9ef4f150589478ac0b26bc7db1216c0af207fb
[media] av7110: avoid switch fall through

On two switches, this driver have unannotated switch
fall through.

in the first case, it falls through a return. On the second
one, it prints undesired log messages on fall through.

Solve that by copying the commands that it should be
running. Gcc will very likely optimize it anyway, so this
sholdn't be causing any harm, and shuts up gcc warnings.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/ttpci/av7110.c