Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1048220pxb; Thu, 4 Mar 2021 01:42:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJyZk2R82aExFB10zzLCjeh99icp4CfLJM8XKszkwAblj+au+bZTK/tXHvNIyWCttGW3XTBx X-Received: by 2002:a17:906:1447:: with SMTP id q7mr3380447ejc.27.1614850942769; Thu, 04 Mar 2021 01:42:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614850942; cv=none; d=google.com; s=arc-20160816; b=zbk2Wtq+iBJxlOXb8jL1GOoAEvIY/uL7CDSD0kkoacAuYlzJQUCCDFtSovuP5U96a3 xUv44Kzdp/RooyL4xjc7msr/jiADtf0CCALQruA09qiYXCUcbqQCqvE4RsuI3at7hI2P wc2mI2MmlkvX/r6zp/rMsSjAKYL7IHYpGJmbMD6UDcA7BU+XWvjVp/Q75b9C/jErsK+7 6ynMtjY+M5+39sOtmIEnzWrNmwx5YPvljL8rAK7Q9hnJiOjztVydZlazsc9GVsdeaj9l CFITm0BUZHEDzoxu9btb+KpPJHRNen70dOIvlX9KqO9dZKb+IaI4xEeQMEnzo8DDNTF6 XL6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=4dxdYss5b7SlYqMSRcuQC9kDOWAqYtG7niqF/6CYYuU=; b=A9b4d3EtwpHPS8qjjCfA9HT2Utred+76F/YOhcFWV7Data1mbmAa3+ElENxjxatKm3 EkUPuKvipZAl9J6QaMv8VgdY0v+xbhU65m7zOhE1pFb6xpSqWPNf9q8HM+23rJmPL8Ce mvvlGSum3woV5Px2Dxji7Y7o5TGZhp/HUtiV3KA/Z2qKzYW09+UB+LAWOWvaNUOe8FQM tqjyZBO+tR0+uIj5MS6LLJ3GZRg88eBTpNvsvo1QKnKZ/e8UqMxc9KVUO8eArRD3a8XU MA5tVDpc42m6Qy1WC9qDfJFwL+/suqUBlh6L8nbB0ZNHa4QTGqx3CEvbPZEsbr+hcsBR BdhA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jl16si11408387ejc.330.2021.03.04.01.41.51; Thu, 04 Mar 2021 01:42:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231991AbhCCPRq (ORCPT + 99 others); Wed, 3 Mar 2021 10:17:46 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:13462 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241153AbhCCAwd (ORCPT ); Tue, 2 Mar 2021 19:52:33 -0500 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4DqwPc56vBzjVbj; Wed, 3 Mar 2021 08:49:40 +0800 (CST) Received: from [127.0.0.1] (10.174.176.117) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.498.0; Wed, 3 Mar 2021 08:51:15 +0800 Subject: Re: [PATCH] misc: remove useless code in set_inode_xattr() To: , "Theodore Y. Ts'o" CC: harshad shirwadkar , linfeilong , lihaotian References: <283210da-b281-2dd7-6ef7-b31e81e72e01@huawei.com> From: Zhiqiang Liu Message-ID: <0949867f-5ed8-6a51-1b8e-b116b833ef22@huawei.com> Date: Wed, 3 Mar 2021 08:51:14 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <283210da-b281-2dd7-6ef7-b31e81e72e01@huawei.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.176.117] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org ping... On 2021/2/26 9:22, Zhiqiang Liu wrote: > > In set_inode_xattr(), there are two returns as follows, > - > return retval; > return 0; > - > Here, we remove useless 'return 0;' code. > > Signed-off-by: Zhiqiang Liu > --- > misc/create_inode.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/misc/create_inode.c b/misc/create_inode.c > index 54d8d343..d62e1cb4 100644 > --- a/misc/create_inode.c > +++ b/misc/create_inode.c > @@ -234,7 +234,6 @@ static errcode_t set_inode_xattr(ext2_filsys fs, ext2_ino_t ino, > retval = retval ? retval : close_retval; > } > return retval; > - return 0; > } > #else /* HAVE_LLISTXATTR */ > static errcode_t set_inode_xattr(ext2_filsys fs EXT2FS_ATTR((unused)), >