Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1437201pxm; Thu, 24 Feb 2022 03:12:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJzc5F9JcXhtAqpyMlM6NREYQ4J7CF9sh53ljM55IPiAyp6IriRle00yVclbRM6jwED1vfNx X-Received: by 2002:a17:902:8f97:b0:14d:64be:89c3 with SMTP id z23-20020a1709028f9700b0014d64be89c3mr2305633plo.91.1645701139814; Thu, 24 Feb 2022 03:12:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645701139; cv=none; d=google.com; s=arc-20160816; b=R3YCnt0zl21KPGsWg4RWzJ5sbLK0NbGr9hAuja4pqqBKeri+9/NKEO7uF+FA1OxnaB dHPFCuO3KJHmrQETZsuN44KFAvxOKq7BUaFMSaELooYGUNdC9Hl8I3oSxeE6NfUL4QKD RaYB/0G6ixA4oghcoAVNAS0DtwKMbV4SaXesYE34o6VTxeOGd9uardizs8ur1pry/Pl6 rpSpYRtMOTdYf6QSj8Gzwf0UsjXhm0xDHSlhP5x55vDZ/UXnSReax2s2cC2whf3PcSDd /oGsuTBjy0l8G+HJbAQyO/6W0cOkDLefFTgcHUMpUNoCPKKgM9D35tIjcKApI9P6crkl 1Yig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=96UEsup2Dqpt4rtl6XLWluNccVvsjVd8S+1k4qjodDE=; b=trTbF5U7CCd/+d/YTP5bminvAL3VYi7rFwvtvpSjiZ7t+OoAjfgmga3xryPLOJGSwK /lgJCb8hU9Q6wKDbJi+pxBtpBycKLP98sTLtsyKeA77Wo0H4gTb3q//h6igZl5ZLD04U r9NY/xwwKZvw398v6LAu5tQOAa+wRbBSRvVl60K1zo1iC+XZ3aDLGtfm2nf8kFni2ABK AOFaF+qz6VAVjpjKIcMOM0B7NAo8ObzV1c7ljOMA9N55n7aXipUPBxVrNbKOCp9PnSSO j3haM9/ouX4YDMIk5S9CmzUffnAI5SrOU6CL2ISyuA9yb6aBuaKo8hPqWZpku3wWRt8W 9Grw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k3si2519088plk.283.2022.02.24.03.12.02; Thu, 24 Feb 2022 03:12:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233576AbiBXKtf (ORCPT + 99 others); Thu, 24 Feb 2022 05:49:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233196AbiBXKte (ORCPT ); Thu, 24 Feb 2022 05:49:34 -0500 Received: from out199-4.us.a.mail.aliyun.com (out199-4.us.a.mail.aliyun.com [47.90.199.4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CE9928A10F; Thu, 24 Feb 2022 02:49:03 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R151e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04395;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0V5O.E4e_1645699734; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0V5O.E4e_1645699734) by smtp.aliyun-inc.com(127.0.0.1); Thu, 24 Feb 2022 18:48:59 +0800 From: Jiapeng Chong To: hdegoede@redhat.com Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] vboxsf: Remove redundant assignment to out_len Date: Thu, 24 Feb 2022 18:48:53 +0800 Message-Id: <20220224104853.71844-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Clean up the following clang-w1 warning: fs/vboxsf/utils.c:442:9: warning: variable 'out_len' set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- fs/vboxsf/utils.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/vboxsf/utils.c b/fs/vboxsf/utils.c index e1db0f3f7e5e..865fe5ddc993 100644 --- a/fs/vboxsf/utils.c +++ b/fs/vboxsf/utils.c @@ -439,7 +439,7 @@ int vboxsf_nlscpy(struct vboxsf_sbi *sbi, char *name, size_t name_bound_len, { const char *in; char *out; - size_t out_len; + size_t out_len = 0; size_t out_bound_len; size_t in_bound_len; @@ -447,7 +447,6 @@ int vboxsf_nlscpy(struct vboxsf_sbi *sbi, char *name, size_t name_bound_len, in_bound_len = utf8_len; out = name; - out_len = 0; /* Reserve space for terminating 0 */ out_bound_len = name_bound_len - 1; -- 2.20.1.7.g153144c