From patchwork Wed May 11 12:57:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102362 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp209874qge; Wed, 11 May 2016 05:58:03 -0700 (PDT) X-Received: by 10.66.132.37 with SMTP id or5mr4716055pab.144.1462971483357; Wed, 11 May 2016 05:58:03 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id az8si9697398pab.242.2016.05.11.05.58.03; Wed, 11 May 2016 05:58:03 -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 S932261AbcEKM57 (ORCPT + 29 others); Wed, 11 May 2016 08:57:59 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:60908 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751565AbcEKM56 (ORCPT ); Wed, 11 May 2016 08:57:58 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue005) with ESMTPA (Nemesis) id 0Mh8wH-1bDUPX3mi1-00MNFH; Wed, 11 May 2016 14:57:35 +0200 From: Arnd Bergmann To: Tejun Heo Cc: "Serge E . Hallyn" , Arnd Bergmann , Li Zefan , Johannes Weiner , Aditya Kali , Aleksa Sarai , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] cgroup: remove an unused variable Date: Wed, 11 May 2016 14:57:22 +0200 Message-Id: <1462971450-728759-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:bqaZt3hnMSNFOFPV9L3HsGmUUDpcV8K/MdrG5N2KOCheEsDVa+Q 0U1AKpuFbAii+D0uQ3+0GGBwtz8d0ecYkq5sq0X08BOsb1u5FG0DnK82XRt+2v5uh+QDsFg Kp0LOy3QuGFWmqIckmZ0dzpMm7RnjVadelPXd7SgxAOGK+gReHti59CRKe5TVpIhPU+8f13 XYhmSDooUr4+ZUo/cXcZA== X-UI-Out-Filterresults: notjunk:1; V01:K0:9Kxl4RYe/eg=:Kdit7WXEojpgeY2aNU5Hwv dIuI3GD47LmLdTQ12YNmPuMvnJV9EY+pMPImWVo017FWp1WAimyqJJGf6rLRKT/bgBPpH43Nh ce9fKg28BLrTGww3CNAYuEFJ3pA/H8YsynNDDGgKDIy303WmzgWm+PoMnYswatEaJCymaaa5H Lnk8WlLH2P7KC8kkrSkwkQv8rGpx041fiqyEmwVpr7KSaJxmNzLSByLs0XFjoN1ockRXe7UWG xFtm/rKc8a382wVRdFkB+IHZNBufuzuLSEqnKcAYYSfLJSmfBrIzJwEqCTKgygA3bKN/shkeP aEeUley1aNe0AelotQciJFi4yIqno1QptCj8qTBelzfW/K1aaw27JHwZ6juVADaifpBDo53Xo 2ZaxN6NELSe9DeWnyniRZXSGBBsBOqqDi4EizsueWxfD6nwSSa9WjuUi+T2+XWzpHlCk0s4fW oMeabeFv3Kf5JTCg2gyvOKdKsnzdrrd/k1F0D1sHgGczqBFAydurxQ1AC0SWs3nJvHGYFsyRZ O/evZls8QWSN8/fjoBpzw0Ofn1JBPgVUuCr/tkAMLR/DEdoQvTGW6AedYZif/qlN1MWey8fF+ srFstn8SiOQV6mU9Bh7ob8KzOcCaQWv99i1iEueLByDSBOsmY2lxl2a/4B0DAlRRFTFz3kZQd 4TWOdXl6oWv846PSQ4AvSnezFbxNNvP+519pzpUSc4hJiEJ1o38bhp7nJ/XesrHYitEw= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The newly introduced cgroup_show_path has an extraneous variable that gcc warns about: kernel/cgroup.c: In function 'cgroup_show_path': kernel/cgroup.c:1634:15: error: unused variable 'ret' [-Werror=unused-variable] int len = 0, ret = 0; This must have been left over from a previous version that was changed before it got committed. I checked the function and found that two other variables in the same function have an extraneous initialization, presumably another artifact from the same rework. This patch removes the useless warning and the extra initializations. Signed-off-by: Arnd Bergmann --- kernel/cgroup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.0 diff --git a/kernel/cgroup.c b/kernel/cgroup.c index afea39eb7649..29ead73d2536 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -1631,8 +1631,8 @@ static int rebind_subsystems(struct cgroup_root *dst_root, u16 ss_mask) static int cgroup_show_path(struct seq_file *sf, struct kernfs_node *kf_node, struct kernfs_root *kf_root) { - int len = 0, ret = 0; - char *buf = NULL; + int len; + char *buf; struct cgroup_root *kf_cgroot = cgroup_root_from_kf(kf_root); struct cgroup *ns_cgroup;