Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1398147ybb; Wed, 1 Apr 2020 23:19:48 -0700 (PDT) X-Google-Smtp-Source: APiQypKSDlB+tDMmznKZ3LvuKipq9Lurimw9D7byURNfIxp/C1L6O0UkSWg+eQD/4dZ44RfHmtKd X-Received: by 2002:a4a:aece:: with SMTP id v14mr1519973oon.48.1585808388052; Wed, 01 Apr 2020 23:19:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585808388; cv=none; d=google.com; s=arc-20160816; b=K2XMewZNwWQ7X+7DhO0KIw/ySB40rprnGnkWtnjqd73lPgTBGdvhjfVBCXAY0GHNgq OmdyGdFFAQXVMgbylYMr8xF6p3c6rGl/dqg+xDi3hdbTXZGtsgnBvnF84UPxbqgb93lu 0NNjVesBlILmW4qi4rpmT7EzrfQNkQz2qSYji9rQx201HfwUVI9a2F5/B259190vsS2w EnFyXUftAybpZQMog/7FxdbtZH+ufMIComtEeYX1kbh5c7Nfd3ZdKPQkpYrEEs3TMLOs MRipXecKrSFqV7YMky9+jpl6tLrS3mDpmfR95mJSK94mgcVCbHGC8Yx/BDuDytM8y32h MZUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=OttPPWIF4yDjAbuyvNp+afaOQJ9Hbn9SWsVoOh3P9Sw=; b=j69pjz4fcwY6POGrLRCWZqNm/MyOBGgvIwDV9GtbLGc/ds4J6U7e7xp+cKVpPfFfAg LdLg88G5XolbTsBf06Zzx211JgOgksk1guPp8gJZEucIoIHl5umZVJmACZ0YSPHTKYpX bmSZsnZiEvGjQGCulXB7h6PedfsCzZWA6+OKol8tD5h7/bu94wT6T5fsL4czyBp9gZ3N WnW+Jb0iHz3MeQzmRZ1m/Yn01StDs0Um0HXMvGhzSVT/I3tBvyJ7MU4D7NXHxubzh6hA B8/1/+kBRnUYWMHDxrWFCt6wgj9I7DixPOT6/FgNSKqzkz5GIWI5YMzxEflGFTh16EkU 1JQw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d63si1928085oib.224.2020.04.01.23.19.35; Wed, 01 Apr 2020 23:19:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728974AbgDBGRf (ORCPT + 99 others); Thu, 2 Apr 2020 02:17:35 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:46938 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725789AbgDBGRf (ORCPT ); Thu, 2 Apr 2020 02:17:35 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 5DA1D78E4EF831D79B48; Thu, 2 Apr 2020 14:17:15 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Thu, 2 Apr 2020 14:17:08 +0800 From: Jason Yan To: , , , CC: Jason Yan Subject: [PATCH -next] f2fs: remove set but not used variable 'params' Date: Thu, 2 Apr 2020 14:15:45 +0800 Message-ID: <20200402061545.23208-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.17.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following gcc warning: fs/f2fs/compress.c:375:18: warning: variable 'params' set but not used [-Wunused-but-set-variable] ZSTD_parameters params; ^~~~~~ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- fs/f2fs/compress.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c index f05ecf4cb899..df7b2d15eacd 100644 --- a/fs/f2fs/compress.c +++ b/fs/f2fs/compress.c @@ -372,12 +372,10 @@ static int zstd_compress_pages(struct compress_ctx *cc) static int zstd_init_decompress_ctx(struct decompress_io_ctx *dic) { - ZSTD_parameters params; ZSTD_DStream *stream; void *workspace; unsigned int workspace_size; - params = ZSTD_getParams(F2FS_ZSTD_DEFAULT_CLEVEL, dic->clen, 0); workspace_size = ZSTD_DStreamWorkspaceBound(MAX_COMPRESS_WINDOW_SIZE); workspace = f2fs_kvmalloc(F2FS_I_SB(dic->inode), -- 2.17.2