Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7256999rwi; Mon, 24 Oct 2022 11:59:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4a4mAAf9rF4ZhiDS2t4vPiJ9KsVCTaeRhjcj2b8/HEKLP2aj31xSQPqpFBtVhpoqGsaGc7 X-Received: by 2002:a17:902:b907:b0:178:2898:8084 with SMTP id bf7-20020a170902b90700b0017828988084mr34199969plb.140.1666637938376; Mon, 24 Oct 2022 11:58:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666637938; cv=none; d=google.com; s=arc-20160816; b=WZWH4uvSvg47N8VALu0Mn8u4XV8Nh45h/aCQrj0p2btvN82WKfKe7mvJBnrqKtq1wB gJIbtXAVtyjCtGbmbhGXz2yTydcXJt1o0L85iU19IWDj6XGRieaWQI+F9LfK9luX8SeB w4yZ7yhkHYPKyR3VDIFP2iRZsmh0kM5v3McAn8dNTtTIC8z1dQCPtgGT9e4O/uJqu7Gz KiPbUH3FETpLp0yBlIVSnDKzueBTuLJKRhe1rn+bCN7ptVq4XjcceAI9FpUDVVY+DGUE LG/YWhz2yf557BIoGRRvw41iTyt2H56VFKl9nuj1643doRoFSi5S7TijH6y7y5dok7Vg wg2w== 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:dkim-signature; bh=OA/Z9xCdVitKa7txwUGEIh39zKNcVwd7tmN/SLXpQyA=; b=nqrqrhgWO4xmBs0xjBDwt60nAcuQ4RkOjpkIKSOSx3y3NddSkBBEYKOgtOK+dp3m+2 vv0moZ3jSCa+JEOA+Oac/wphozokDHdQAwSG+jFmqsg8HL7UCPdIlHIF4xbLSj1BNNsM BpAfNSfHWqco3eXT3iAbP3QHfEGlrlzsdN1KKpVtT18scnRQSs/Tnd1UICbkrF9yqXVL +w4xLXLK2V0H60A8fgENi+iHKbvgF8ROsqnA/zhIwWSRwmv2ZZ3JhyiIZVJ7aqhOWuNj 0fDXBLeluKiB3+kWF03OGWLJLeCSZBN1tdgagy75P3RyBfO7U6M9xS8Z+jvtwuzn8wv+ s/Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Kr2odBPf; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g13-20020a17090a67cd00b00212c87edbcesi8790422pjm.76.2022.10.24.11.58.45; Mon, 24 Oct 2022 11:58:58 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Kr2odBPf; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231437AbiJXSCC (ORCPT + 99 others); Mon, 24 Oct 2022 14:02:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231337AbiJXSBg (ORCPT ); Mon, 24 Oct 2022 14:01:36 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EE6F256D3A; Mon, 24 Oct 2022 09:41:56 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id l14so9896467wrw.2; Mon, 24 Oct 2022 09:41:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=OA/Z9xCdVitKa7txwUGEIh39zKNcVwd7tmN/SLXpQyA=; b=Kr2odBPfaREIMS89TUOgxkHuPnSExeykas2gFXBgZOStedVK12KnyzY1LPGBRl6X00 IPrTasbyQy63eICFRMKdpyJfLHxam+vEK5vgp3yvkUb4YpVdy+KAmWky4IEboFRkx1lC Oz/L5atsAH8NTlZh4DUgFCdW75bH7V11F0mj77yB8jSsS0fFdACjaIOKqpLlHGP7tSXm 5LJA2MSZXoA4j/6EtgCvbUyKNDQ/P6BOBdWxJec3BYFsjJpeN7OOmCdxMTz3Ip+um/5u viVBqKZXgAnvH+Dqp83aKuYe37IdhUDvzpWglB4/bWSKro1JJzgHuwBJRINcFJutHqXv qmKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=OA/Z9xCdVitKa7txwUGEIh39zKNcVwd7tmN/SLXpQyA=; b=0eWx+8N7ky3B7/K839MdV8FWCxaHA6lsiWu20rxlGtLcBwT470mHifA3kt7GblOsWz w/Iuc1rRnCpWlUTNv1lmeRtZykrrhMbJvPHn9qdBEBZvOv+JDgmA5zue78YLeEOL1+sn nlYo7GzcQ64zg65mzG8wd++vtRvGFyHLPi21T/mWXzU9VxOzXPJXbNicSnJseAieZ7vx B1nThBWasa8QZ/jNISavCXVVtiUTnF906ZQWDh8gzlu/WAGPLBN/Jv5vWT6ahq3LsLXv xkpmJ3mQKZXFL0rz/xuVywqhW3RMjacmMNI3VypEHk6WXbW4MfxS9iTokNMxUsfw75iK G7Xg== X-Gm-Message-State: ACrzQf1h9WbNxsuXLEsGELqGzzQbEL3n0GQuMZf932al2M/DIPH4mQ1S a5fKLtn7FNIraP1VSBauoKA= X-Received: by 2002:adf:ed41:0:b0:225:3fde:46ea with SMTP id u1-20020adfed41000000b002253fde46eamr22223742wro.345.1666629613139; Mon, 24 Oct 2022 09:40:13 -0700 (PDT) Received: from localhost (cpc154979-craw9-2-0-cust193.16-3.cable.virginm.net. [80.193.200.194]) by smtp.gmail.com with ESMTPSA id p5-20020adfaa05000000b002366f9bd717sm145161wrd.45.2022.10.24.09.40.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 09:40:12 -0700 (PDT) From: Colin Ian King To: Hans de Goede , linux-fsdevel@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] vboxsf: Remove variable out_len Date: Mon, 24 Oct 2022 17:40:11 +0100 Message-Id: <20221024164011.2173877-1-colin.i.king@gmail.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Variable out_len is just being incremented by nb and it's never used anywhere else. The variable and the increment are redundant so remove it. Signed-off-by: Colin Ian King --- fs/vboxsf/utils.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/vboxsf/utils.c b/fs/vboxsf/utils.c index e1db0f3f7e5e..7f2838c42dcc 100644 --- a/fs/vboxsf/utils.c +++ b/fs/vboxsf/utils.c @@ -439,7 +439,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; @@ -447,7 +446,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; @@ -468,7 +466,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.37.3