Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2292720rwd; Wed, 14 Jun 2023 00:18:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4BkCHP1bbwmyytByRGpCjIGlEfaQ8Ljjya8bwoX81FvlE4zihdFfIVby1s7ddEvO4MGRqy X-Received: by 2002:a17:90b:3e8e:b0:259:3d01:c151 with SMTP id rj14-20020a17090b3e8e00b002593d01c151mr533038pjb.21.1686727089245; Wed, 14 Jun 2023 00:18:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686727089; cv=none; d=google.com; s=arc-20160816; b=fpzJi0dwEdn+OHOCcHvvgt1B2yqvd+ifAf7/HLFXPPSdYiQQOL6eVCF8cGqS8b0fqb UEe8z97H8gFuoi3o/sH/ZZpOIKcBnmCOuc8ffB1ZbROj/V28+WyJgxk7FW2ab9kB61Q5 BLeaA9swKQsAKF3XD+X4Eb4/DsOPjvuUj/rStjH6ILXUJK4WhhnKpQmYBSiqu9tvHqv+ bQBWjmKEQGYOC8ohtOy4o6sI0bFj8FSyuPsLpZufow3sNxqh1K5X51WQlzfrdGLuvQLu bMFkRHIcmUyx0RIsGYRS3l1Zp0bZZbZTpxpe0OciNh2MyKTnlPNPMqBzQFfJS4XpJqlF WsEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=/pMmr/XWhli8yeClFxHAs2yVZ/ItvOSHv5yH8dSKQPA=; b=yXHcO7tR/4/LBhn4YDL196QXnNzAUWfXXGM1WBJ7I1GF1RaBRdsHexitFFATudOt28 hCFmOAZYba8sb0csH0Umgi2lnnzpm/2+Vnk9WAGOAsfEEcpMqIWEgl2rsRh48A7OYPXv x7Jol9osx3XCHMufSjkTRDOwmoIXmZqQqzYjx23BxlZb2b3V0HDYB76zU5UvaMzEW2Tc f+FWw8rawx4J2liBm7DFh0LbCcFKCp2XfFOLLvcEtdeefVTBBJ0KlhpFxAdRVxxN4tPn JPOsO0UbBJ2Ml1dY7hW0z2ksOcXpW0REinDNAPwm8AQESaHVLy+/L3dHjq0ASuseJ9C6 EQfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b=oY3pe124; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n20-20020a17090aab9400b00252779bf264si6499616pjq.52.2023.06.14.00.17.55; Wed, 14 Jun 2023 00:18:09 -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=neutral (bad version) header.i=@208.org header.s=dkim header.b=oY3pe124; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243214AbjFNHOb (ORCPT + 99 others); Wed, 14 Jun 2023 03:14:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243009AbjFNHOM (ORCPT ); Wed, 14 Jun 2023 03:14:12 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E4FD98 for ; Wed, 14 Jun 2023 00:14:11 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4QgxVn2SpFzBQJYP for ; Wed, 14 Jun 2023 15:14:09 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1686726849; x=1689318850; bh=ZkSEV9T4m9A5Dk91EECTWaD8pX/ puAJicguo1fQWDOc=; b=oY3pe124ZkZWhhSAIDdR0kEyqPA9r6yNz1Sja8qiKpq D8grX5BG+NOgwpDYCsb9jJsaGaL+ldWbxfRqc4wtADZDDD52cQx9c+alDycRiBVn UrW0egadHubKUO24mmIUM5nUjLRBlW3gNWN3E9Y4l5VPRYhtG5F/+XOGPxyYafX5 DeFKaOg1sIj1ngOGqm3mcoeldEh8aUa3VYrJmiFvZRguyUsJiz6W4f4SXRW/F71P NK2psj2zgewl9bxboaBZ4q9XTtTkl96nAsSEy5AHalyO2iH7yYG1hmwu7uyoWgYT opADniCXdiCFMr7SxfJTIVDQfOnestdoxQOYVqdrzTg== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 7Ir6jmMnpv8q for ; Wed, 14 Jun 2023 15:14:09 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4QgxVn165zzBJLB3; Wed, 14 Jun 2023 15:14:09 +0800 (CST) MIME-Version: 1.0 Date: Wed, 14 Jun 2023 15:14:09 +0800 From: baomingtong001@208suo.com To: terrelln@fb.com Cc: linux-kernel@vger.kernel.org Subject: [PATCH] lib: zstd: remove unneeded variable In-Reply-To: <20230614071235.55955-1-luojianhong@cdjrlc.com> References: <20230614071235.55955-1-luojianhong@cdjrlc.com> User-Agent: Roundcube Webmail Message-ID: <8c519982c1b73dfb4aa84c8215c8a5ac@208suo.com> X-Sender: baomingtong001@208suo.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RDNS_NONE,SPF_HELO_FAIL,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no 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 fix the following coccicheck warning: lib/zstd/compress/zstd_cwksp.h:220:17-27: Unneeded variable: "slackSpace". Return "ZSTD_CWKSP_ALIGNMENT_BYTES". Signed-off-by: Mingtong Bao --- lib/zstd/compress/zstd_cwksp.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/zstd/compress/zstd_cwksp.h b/lib/zstd/compress/zstd_cwksp.h index 349fc923c355..36c574cd3d6f 100644 --- a/lib/zstd/compress/zstd_cwksp.h +++ b/lib/zstd/compress/zstd_cwksp.h @@ -217,8 +217,7 @@ MEM_STATIC size_t ZSTD_cwksp_slack_space_required(void) { * n_1 + n_2 == 64 bytes if the cwksp is freshly allocated, due to tables and * aligneds being sized in multiples of 64 bytes. */ - size_t const slackSpace = ZSTD_CWKSP_ALIGNMENT_BYTES; - return slackSpace; + return ZSTD_CWKSP_ALIGNMENT_BYTES; }