Message ID | 20190604065826.26064-1-anders.roxell@linaro.org |
---|---|
State | Accepted |
Commit | 64ae0e71c60dc4bd3a59ae709b807f96f68df495 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp5453678ili; Mon, 3 Jun 2019 23:58:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJFVXi1IGGykCV/W2rmW7+UIaz0vVChIJiClCY8axLCX0tgkyxGGtcm+enVN09czC7GhTn X-Received: by 2002:aa7:8ec6:: with SMTP id b6mr36533234pfr.234.1559631536039; Mon, 03 Jun 2019 23:58:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559631536; cv=none; d=google.com; s=arc-20160816; b=K5YzKAg/NdB35DsScjFPt+APSoeZ1BJAeB/9A4TpiQRQgC/SyitaLIr4A1F+qMgfnd nBpTAJu8T3lZG1bcy6uhk4IowWJyrSUCgYZyv6p+jr2M0i7lWnXBTWQZGuV5lml8QMD1 VTK4DOL3NeaELTfpT2Jiki4bgbWz7SE3jUWUaxk6w2eI0OafUH1ENt6F81kJcMmfP8Hb 4u/K93zsaM5Kz9bwNFyfIgP8Z/Jv7jYUj3YOUzbrwzvtxGzssw+NOSyb7Hj/jkMS7vb8 d8So4vS+KHAXypsC4TKR3irt3p8QCwG8QThwoRTyuP9VEULsNX8VPf1Bo8NWD8ROsA3r dMmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=miy+F0UoMi0lHDhsda5tGypnZkgAe9GPxZhd/GwR4u4=; b=UgEdSW2+OD+9v7gdpUTwPN6bDiKsqTianTrfURBqlLnUx95zJ3zAGgidvHOiz3udpP vMxrT31srQtTydWyYFm/VuLMAlvYpNDOD8aLTxBIKKxlAzb08s/7E4Whkagaqq92aNah 15RD5dis60bGDxMgFOy8hHmJIE11Ugude7zqlwzPP5y3588NMkjbknDuZQ1SY/6guqxf Q1O8ey+3gk1t0sVueXsOSQzSWUmNf8wdRHi1Wjmml5rIOBbQxQqYuACQgytwchfSiNys 6F8VmiWNgDqk/yKKiKWNMgCtpIXsKFFx41Zj3G+ezDwpxvaXZNGaPLqcHTWbLXURFu80 r+pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mVr5fzjs; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b9si21489082pjo.95.2019.06.03.23.58.55; Mon, 03 Jun 2019 23:58:56 -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; dkim=pass header.i=@linaro.org header.s=google header.b=mVr5fzjs; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726881AbfFDG6z (ORCPT <rfc822;mike.holmes@linaro.org> + 30 others); Tue, 4 Jun 2019 02:58:55 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:37259 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726837AbfFDG6x (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 4 Jun 2019 02:58:53 -0400 Received: by mail-lj1-f193.google.com with SMTP id 131so6039843ljf.4 for <linux-kernel@vger.kernel.org>; Mon, 03 Jun 2019 23:58:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=miy+F0UoMi0lHDhsda5tGypnZkgAe9GPxZhd/GwR4u4=; b=mVr5fzjsLR1nkrv+kdyuXyQZYPVgVYh780mkZNBtzql5tdvV6xYIXziep7mAHvlpgr wgVyucCn9Q+gRs9xdpx5DDJBkgsWgpVO758qfmyjDY+nq/AGEVHSIj6TD8fqoVO6NuB2 gmN9XNCHZemMWo7MBLZf9LlwZdrVYmZpT4HX/YhK8tgItVFx1+9PVUn4axVECn2cPbiR xaZ9JlI8wU4yhQ5NKlasEhRA9N5TlsYY08c9dTH9lwSnisaGNESI7RSrQuR+URHoqolU 7sWzDFpg5l+yS+IUyV3P5ZwDTQ9RdxIoM9FShhqodspBm7i0OQ2BQQ+n7YVmD1emI5gi c3RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=miy+F0UoMi0lHDhsda5tGypnZkgAe9GPxZhd/GwR4u4=; b=cYnIHcX3bDD5TB9nbvCaZbJHO/scJvmzjlpx4WHdTlcJcmlH0TjG90atOosmF/vK3r uJblnkGl4ACqNqfoJ4BK/4fYy4WeiD5/txhqhZYEEJ0Gv0CWx46MgmXb9kX9ni0ZN1Ju uS2ferPFOsZl8zA8E7lGxMa1mbyFw+DKhsQF1FaY9ZaUBUIxsHAnExKGJkyWgq9r6jPk SxM7RFbggbmG78aNgipi7gwERLlfJ66KMuim5UuODx0fQhixJeceCJJVl4uQ+Ymrmt0U 91THeEKSAatFLJ+pUfYXefVuZPHXvXJsmA7LKwvP4e5a0Sh38dXFF0wksNQzzZPrWKxB rSog== X-Gm-Message-State: APjAAAUFiHTnVmepLUJTJHkVLWMwy/38+s6JcI1hTIBrD9lW8XWo6ruM ftevDhaI22usT7OAR7CE1SPaqg== X-Received: by 2002:a2e:9654:: with SMTP id z20mr3491108ljh.52.1559631531818; Mon, 03 Jun 2019 23:58:51 -0700 (PDT) Received: from localhost (c-1c3670d5.07-21-73746f28.bbcust.telenor.se. [213.112.54.28]) by smtp.gmail.com with ESMTPSA id r11sm2978344ljh.90.2019.06.03.23.58.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Jun 2019 23:58:51 -0700 (PDT) From: Anders Roxell <anders.roxell@linaro.org> To: minchan@kernel.org, ngupta@vflare.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Anders Roxell <anders.roxell@linaro.org> Subject: [PATCH] zsmalloc: remove unused variable Date: Tue, 4 Jun 2019 08:58:26 +0200 Message-Id: <20190604065826.26064-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
zsmalloc: remove unused variable
|
expand
|
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index 1347d7922ea2..db09eb3669c5 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -645,8 +645,6 @@ DEFINE_SHOW_ATTRIBUTE(zs_stats_size); static void zs_pool_stat_create(struct zs_pool *pool, const char *name) { - struct dentry *entry; - if (!zs_stat_root) { pr_warn("no root stat dir, not creating <%s> stat dir\n", name); return;
The variable 'entry' is no longer used and the compiler rightly complains that it should be removed. ../mm/zsmalloc.c: In function ‘zs_pool_stat_create’: ../mm/zsmalloc.c:648:17: warning: unused variable ‘entry’ [-Wunused-variable] struct dentry *entry; ^~~~~ Rework to remove the unused variable. Fixes: 4268509a36a7 ("zsmalloc: no need to check return value of debugfs_create functions") Signed-off-by: Anders Roxell <anders.roxell@linaro.org> --- mm/zsmalloc.c | 2 -- 1 file changed, 2 deletions(-) -- 2.20.1