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-19 05:03:10
Also in: lkml

From: Jesper Juhl <redacted>
Date: Sat, 13 Aug 2011 01:39:43 +0200 (CEST)
From: Jesper Juhl <redacted>

We'll either hit one of the case labels or the default in the switch
and in all cases do we then 'goto out', so having 'goto out' right
after the switch is pointless as we can never hit it - remove it.

Signed-off-by: Jesper Juhl <redacted>
Probably a lot cleaner to use break statements in the switch() statement
and keep this goto in place.

That's more straightforward control flow than what this thing is doing.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help