[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20110818.220249.1523360015062657902.davem@davemloft.net>
Date: Thu, 18 Aug 2011 22:02:49 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: jj@...osbits.net
Cc: khc@...waw.pl, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, trivial@...nel.org
Subject: Re: [PATCH][Trivial] net/wan/hdlc_ppp: remove dead goto
From: Jesper Juhl <jj@...osbits.net>
Date: Sat, 13 Aug 2011 01:39:43 +0200 (CEST)
> From: Jesper Juhl <jj@...osbits.net>
>
> 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 <jj@...osbits.net>
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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists