]> git.baikalelectronics.ru Git - kernel.git/commit
net/wan/hdlc_ppp: use break in switch
authorJesper Juhl <jj@chaosbits.net>
Mon, 22 Aug 2011 18:30:38 +0000 (11:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Aug 2011 18:30:38 +0000 (11:30 -0700)
commitab9fdf9fcf13d28322a44b18e89a9e37294c0816
tree1404f8966112ca6f4c3ba19792117d311b521348
parent573cbce23699bbd35f03001bc25560d387e08095
net/wan/hdlc_ppp: use break in switch

We'll either hit one of the case labels or the default in the switch
and in all cases do we then 'goto out' and we also have a 'goto out'
after the switch that is redundant. Change to just use break in the
case statements and leave the 'goto out' after the lop for everyone to
hit.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/hdlc_ppp.c