Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp542700rdg; Tue, 10 Oct 2023 19:53:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFJywIauzlPpmPv4LMjR1fRRUmI/dJhjiTfaHdf6eqRwv+eMNnrtf8AdMCEN3r8/NYTSlEI X-Received: by 2002:a05:6358:528f:b0:143:96ac:96ec with SMTP id g15-20020a056358528f00b0014396ac96ecmr27221889rwa.25.1696992837805; Tue, 10 Oct 2023 19:53:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696992837; cv=none; d=google.com; s=arc-20160816; b=s8FHTxU9QWB2DzjorMjtiCnaUJjlJBffNCEs/K661MJl0/lL4RKdorLzm9jmHjaoAQ 61jEH508jCnIBl8lm8lN7XprBGa9AgYjfr80qud9EY5ZxmYPQFXZb+ntRwj9SrTWYidd v1sXHuQtiGEphHcS/UO6/YE3q6ZphxR++XZAldDC8k1lomj83PVKRC9hIGS4DlWoQkjT nIYy/M0mgKL5kUxqtubD22rAY6OYnLpz0KC4u3yXVgIiDaG/7FTsKgi90DGMc64wJ5m9 kpK8/QCF5QZIWc3Aj2Pfr9TQJ+vozWHHPWWgw2SrLhUjNRgxLqaG7cZX7zfmkuaWMS1K b6lA== 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=o10j3wIRoaahNk3W7aLlFy8lGWzM+lF7moSe18LQCk8=; fh=wV1ZB1qzz5z3Mb8163AUgbkHtWXXk+zWajy2sNqX5mU=; b=Mf9vvMGKNi0p3iMvRT551obQMjcM5ikAwUce43IlXRkngS83fM0cVejDghdX7LwsWm 9SZsTJgozYKYg6g/B2ZGGBOaRRSPFD4UynOmlbSkgIwo0+y1DPJHaVYyJw9ZIimyKCLV NTxTXJ5VC/YL9ESMA5L7L8c55UNA5wngpQvlHPVB/nLbX5qjhQl5jl73qMpxsADsXltU ridK8ZSzgkGZojHHgIjL87ExesyF63CJ6c97ZflXWknlzeSXA+h9lxtde3dld/YTDKPW 2fxtnVlytAPu7Q3vejsSWHFaIDmgMMTN1WfWeEiNG9rQ+ICtpQrW8I23JT99hegzG6Nz R66w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id x7-20020a17090a9dc700b0027cf69a6633si1993081pjv.95.2023.10.10.19.53.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 19:53:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 161E2809B9C1; Tue, 10 Oct 2023 19:53:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344874AbjJKCxq (ORCPT + 99 others); Tue, 10 Oct 2023 22:53:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344865AbjJKCxp (ORCPT ); Tue, 10 Oct 2023 22:53:45 -0400 Received: from out30-131.freemail.mail.aliyun.com (out30-131.freemail.mail.aliyun.com [115.124.30.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5003392; Tue, 10 Oct 2023 19:53:43 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045168;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0Vtua.ww_1696992784; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0Vtua.ww_1696992784) by smtp.aliyun-inc.com; Wed, 11 Oct 2023 10:53:41 +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 the unused variable out_len Date: Wed, 11 Oct 2023 10:53:02 +0800 Message-Id: <20231011025302.84651-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=2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 10 Oct 2023 19:53:55 -0700 (PDT) X-Spam-Level: ** Variable out_len is not effectively used, so delete it. fs/vboxsf/utils.c:443:9: warning: variable 'out_len' set but not used Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=6776 Signed-off-by: Jiapeng Chong --- fs/vboxsf/utils.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/vboxsf/utils.c b/fs/vboxsf/utils.c index 72ac9320e6a3..9515bbf0b54c 100644 --- a/fs/vboxsf/utils.c +++ b/fs/vboxsf/utils.c @@ -440,7 +440,6 @@ 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_bound_len; size_t in_bound_len; @@ -448,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; @@ -469,7 +467,6 @@ int vboxsf_nlscpy(struct vboxsf_sbi *sbi, char *name, size_t name_bound_len, out += nb; out_bound_len -= nb; - out_len += nb; } *out = 0; -- 2.20.1.7.g153144c