]> 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)
commit148204497f2fb105e612dce6d6d13f9488d0328e
tree1404f8966112ca6f4c3ba19792117d311b521348
parent1d05772c2a6b569761a1f5dd680cfac797fd16fa
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