From mboxrd@z Thu Jan 1 00:00:00 1970 From: zhong jiang Subject: Re: [PATCH] net: ipv4: Use BUG_ON directly instead of a if condition followed by BUG Date: Wed, 12 Sep 2018 21:25:18 +0800 Message-ID: <5B9913BE.1040807@huawei.com> References: <1536590282-23899-1-git-send-email-zhongjiang@huawei.com> <20180911.235417.1481257495387934935.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Cc: , , , , To: David Miller Return-path: In-Reply-To: <20180911.235417.1481257495387934935.davem@davemloft.net> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On 2018/9/12 14:54, David Miller wrote: > From: zhong jiang > Date: Mon, 10 Sep 2018 22:38:02 +0800 > >> The if condition can be removed if we use BUG_ON directly. >> The issule is detected with the help of Coccinelle. >> >> Signed-off-by: zhong jiang > You keep asking if this is worthy to do. > > I think the most worthy thing to do is actually build test your > patches. I am sorry for that. :-[ Thanks, zhong jiang