Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp521013ybi; Thu, 30 May 2019 02:22:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqxtKSqPQ9BE4zlcpTFQpJKpDf+dURBPaHucRqdmwqUQsZy0NagLN4NQey8+hVOSzTystpYd X-Received: by 2002:a17:90a:20c4:: with SMTP id f62mr2811548pjg.16.1559208152678; Thu, 30 May 2019 02:22:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559208152; cv=none; d=google.com; s=arc-20160816; b=w6hHLSJ1cDt60GzC2XwA3LybuCSP2X40U4sOI9x5M3MjgA1Aku9ljyr6qOUv6qjkEa uU4DCCOjTXJGh48fkC0Ps7+2vzcc0Y1sniycOyQcwvfJhkmtvr981l62QuhcCv0h5HNh h+/DUsGxi0644ZGn9tpMq9Gd0RvZwDn4fGVp3ab8OKxKP2L2U5kTwc6Slr13XQ8NURqM 6Yo1UmwWPPROtgke5D6rKx3ffSHzJuwGVd5uEQiw14yfdYJKsfMUWt/80Kr4OxR09hwE hN3ZLgzk+hoZJjsAi+hoYGy57XCN9rU7QLcUs3fVtWlkYMzYAILzdu1AOX/rQOMR0Pr+ y54w== 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; bh=bXmoJNEbrPXtWcbWaevtm55gchiD7AFUrh4STNUZ8Vc=; b=IArnfipPTf+iiR3wH9NXrYd+wKfsO4bRWRwgUOpciHpPDFSZntu38Tddm+EpLmDwxn HWVbgRnvHbS7eikYlyeBGo2dvgWPY3N5eUiNJUoMpKHg64FCie9T6Z8YTMdS1v8fsQtW 9O/yaJ1q8Z9J1shId/45AFZstJWy+5W3A1Z6L7/t35GletRUhLm3gZUeigCvGrJMi5Zt I/U+InsKzxufeZImPKl+7U+lVVSRZ+nS6/cCvH8rCAGoo6QbkLfzwjV0MB+Zhfa7VUio It1HM/JuFMf3VA0wpb5ZHSrVwo3bAdOpaxjPOWGFOdIlzpO73aVAn3hK4biBl3dqmWl9 eqSg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f64si2463053plf.128.2019.05.30.02.22.17; Thu, 30 May 2019 02:22:32 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727587AbfE3JT7 (ORCPT + 99 others); Thu, 30 May 2019 05:19:59 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:53811 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727557AbfE3JTz (ORCPT ); Thu, 30 May 2019 05:19:55 -0400 Received: by mail-wm1-f65.google.com with SMTP id d17so3466268wmb.3 for ; Thu, 30 May 2019 02:19:54 -0700 (PDT) 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=bXmoJNEbrPXtWcbWaevtm55gchiD7AFUrh4STNUZ8Vc=; b=nR/wDqAhThFQpDAt0t7fisYVPaGagEct2ncHBo3lqtvJiBaQQMsP+YIb048tnk9Ztm 1kTcPA/BMG+dRLHtS21T146K0WbYoeo7e5q3xz0Jcx6QlACw6rarriRmMTCFd+/jZzD7 q2K0eLVmg7GjA59vIZhYrzfa1GPUZZigQ9HjXTWGW58Uq7LZx1nUJm4MPHG9hYWo42V3 eEIzAL6iYNISZPBX5B8oitYtt2lehRdOTEkjDD4ayjTUNFHxSONoWwrxRksMyz5TZtWi DmHuFV4ag72ZwI9SVy1bcAG3bszl2L02YiSVeUT1xrLK6KnGLsWRqOEg7iKILR8GIVTk z5ng== X-Gm-Message-State: APjAAAUeJi5WitKIF0fyoiE4tCR22kvPxkuPpw01D+pGbBtYlOpQ/AR1 Z10jKoE6zlZBNwKDOIPs8Ehk9A== X-Received: by 2002:a1c:cc02:: with SMTP id h2mr1594795wmb.13.1559207993643; Thu, 30 May 2019 02:19:53 -0700 (PDT) Received: from raver.teknoraver.net (net-93-144-152-91.cust.vodafonedsl.it. [93.144.152.91]) by smtp.gmail.com with ESMTPSA id f24sm1513381wmb.16.2019.05.30.02.19.52 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 30 May 2019 02:19:52 -0700 (PDT) From: Matteo Croce To: Stephen Rothwell , Andrew Morton Cc: Linux Next Mailing List , Linux Kernel Mailing List Subject: [PATCH] tipc: remove two unused variables Date: Thu, 30 May 2019 11:19:52 +0200 Message-Id: <20190530091952.4108-1-mcroce@redhat.com> X-Mailer: git-send-email 2.21.0 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: X-Mailing-List: linux-kernel@vger.kernel.org Remove two variables which are unused after merging 6a33853c5773 and generate the following warnings: CC [M] net/tipc/sysctl.o net/tipc/sysctl.c:42:12: warning: ‘one’ defined but not used [-Wunused-variable] 42 | static int one = 1; | ^~~ net/tipc/sysctl.c:41:12: warning: ‘zero’ defined but not used [-Wunused-variable] 41 | static int zero; | ^~~~ Fixes: 6a33853c5773 ("proc/sysctl: add shared variables for range check") Reported-by: Stephen Rothwell Signed-off-by: Matteo Croce --- net/tipc/sysctl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/tipc/sysctl.c b/net/tipc/sysctl.c index 9df82a573aa7..180574ff3a3f 100644 --- a/net/tipc/sysctl.c +++ b/net/tipc/sysctl.c @@ -38,8 +38,6 @@ #include -static int zero; -static int one = 1; static struct ctl_table_header *tipc_ctl_hdr; static struct ctl_table tipc_table[] = { -- 2.21.0