From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] net: sched: cls_api: fix dead code in switch Date: Thu, 26 Jul 2018 14:10:22 -0700 (PDT) Message-ID: <20180726.141022.1379401977396818228.davem@davemloft.net> References: <20180725140724.GA23053@embeddedor.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: jiri@mellanox.com, jhs@mojatatu.com, xiyou.wangcong@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: gustavo@embeddedor.com Return-path: In-Reply-To: <20180725140724.GA23053@embeddedor.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: "Gustavo A. R. Silva" Date: Wed, 25 Jul 2018 09:07:24 -0500 > Code at line 1850 is unreachable. Fix this by removing the break > statement above it, so the code for case RTM_GETCHAIN can be > properly executed. > > Addresses-Coverity-ID: 1472050 ("Structurally dead code") > Fixes: 32a4f5ecd738 ("net: sched: introduce chain object to uapi") > Signed-off-by: Gustavo A. R. Silva Applied, thanks. Please use "[PATCH net-next] ..." in your subject lines to indirect the tree that this change is relevant for and targetted to. Thank you.