Thread (4 messages) 4 messages, 2 authors, 2011-08-22

Re: [PATCH][Trivial] net/wan/hdlc_ppp: remove dead goto

flat view

From: David Miller <davem@davemloft.net>
Date: 2011-08-22 20:52:28
Also in: lkml

From: Jesper Juhl <redacted>
Date: Sun, 21 Aug 2011 23:38:51 +0200 (CEST)
From: Jesper Juhl <redacted>
Subject: [PATCH] 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 <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help