Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp848648pxb; Thu, 25 Feb 2021 17:25:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJyr5pFAIloZUY17fl/Ve7KLU/W+y7vlEbZa2bdhI24AAQwCd3CMYtmCzCxra0UTcSLvku6Y X-Received: by 2002:a17:906:d0d2:: with SMTP id bq18mr519129ejb.109.1614302732840; Thu, 25 Feb 2021 17:25:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614302732; cv=none; d=google.com; s=arc-20160816; b=NLjp5qoVzJ+uakF/vYZu4/3YstTPp29S0/9tBZDYp7046k3Rccu4EUrQQM8ekHRroQ NqVjaRvh3P8rDw1pxc7iqksoDMYdA/4SDMNpUm/jydY4KvQqIU/rQv93Cz7NMI73FBS3 l5/D/V9cEdN7Sfaxs1FsW0n170oxhjkW5Y07/wIi6ALQuH3IesDQyiVf52BWbyxsOe34 mkh46QiEVyMhz5kLi/m/lxuh56/ZUB7UTvilY+YiAuNBaXwZbbyCYwMnkvhRxy0WssYp 6kws7Sr6aHr07GiEpLw9qOXlCWDE/dlTVDY+2+trQxHkmPGzfj2aGMReCHiLK2Rcrq8x wl5w== 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 :mime-version:user-agent:date:message-id:subject:from:cc:to; bh=1woUHcmmH6E/JnETAqFpsILaJjdhHTrE0jzYhKLKFUc=; b=BBjPoZbyHZBu6ZRPYbVASGk1PUJMoPxR7kVb/7Cw081shAWXvMEFHuW64nybomCvmX j1+Ia9C17qdX/JOs6Z7mETYWH/NhtadAdhCB+5igqtSxOhg8d5DhLWojQrugv7C/b0Z8 6IxSxytzdD3UdgtBtREBG3aFA9wnesL+fvDC6Ir0Lcx2sQvhakzM839NwvRkSuCDbLDZ Cm7h4RDslNm/M46ibNdskXOjRAe0IMu5chuY91XaP22QJn9DtOnA+AqmOoELHhMREGk2 e92PcQ/RoATgENa4sBrU0KFMbU2THwWfDxc0hJoX45r1nNp6gL3Ni2YGo1UlBa33ndZh r7Hw== 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 cy16si4839284edb.56.2021.02.25.17.25.09; Thu, 25 Feb 2021 17:25:32 -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 S230104AbhBZBXu (ORCPT + 99 others); Thu, 25 Feb 2021 20:23:50 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:12580 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230071AbhBZBXt (ORCPT ); Thu, 25 Feb 2021 20:23:49 -0500 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4DmsL65bywzMfD1; Fri, 26 Feb 2021 09:21:02 +0800 (CST) Received: from [127.0.0.1] (10.174.176.117) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.498.0; Fri, 26 Feb 2021 09:22:59 +0800 To: , "Theodore Y. Ts'o" CC: harshad shirwadkar , linfeilong , lihaotian , From: Zhiqiang Liu Subject: [PATCH] misc: remove useless code in set_inode_xattr() Message-ID: <283210da-b281-2dd7-6ef7-b31e81e72e01@huawei.com> Date: Fri, 26 Feb 2021 09:22:58 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 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 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)), -- 2.19.1