From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bombadil.infradead.org ([198.137.202.133]:60098 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725994AbeHBEXK (ORCPT ); Thu, 2 Aug 2018 00:23:10 -0400 Date: Wed, 1 Aug 2018 19:34:12 -0700 From: Matthew Wilcox To: zhong jiang Cc: viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] fs/binfmt_elf: remove the same condition check Message-ID: <20180802023412.GA25338@bombadil.infradead.org> References: <1533175228-17547-1-git-send-email-zhongjiang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1533175228-17547-1-git-send-email-zhongjiang@huawei.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Thu, Aug 02, 2018 at 10:00:28AM +0800, zhong jiang wrote: > dump_align is used to double check in a expression. It is redundant. > so just remove one of them. You're wrong. Functions in C can have side-effects (and this one does).