From patchwork Mon Sep 10 11:30:50 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 11286 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 7850923E00 for ; Mon, 10 Sep 2012 11:34:03 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 15995A19256 for ; Mon, 10 Sep 2012 11:34:02 +0000 (UTC) Received: by iafj25 with SMTP id j25so1684307iaf.11 for ; Mon, 10 Sep 2012 04:34:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=hynZMV4G10Ir87xSUTl4SN9bxDVec4eY1toFRD1YllQ=; b=DX7J6N8SLc4wmgSjNWxltu1ltYTxyJrVEkMXDjQQtaHTPvuL1P3bwnaXQyLk50lukM z4f3QXlyqeXANtFuySML6FfjVjt/CL+270vxSu1a9+b4lXLXWTj61LafmPw8uxwR7OjQ kai2ANPcJd1J38moUOwAELUfHidGNEtAzoKVDIEfMOdMm/5OnBcMks3Y2IcXjjR+wzmi gaS3+JheFwx/yDHsNf8MLfwbMMDwcQF2nYfAzu3X467KhATlYbT+98/qZ3+HLYzuXciE dDSs1wUz+4tHvQQqREmnbAidG7GoJHccSHHw9V7qk8lUgS8+KHb9NLqYyHDtdBoA392w y0Ug== Received: by 10.50.191.227 with SMTP id hb3mr2366382igc.43.1347276842548; Mon, 10 Sep 2012 04:34:02 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp86990igc; Mon, 10 Sep 2012 04:34:01 -0700 (PDT) Received: by 10.66.77.168 with SMTP id t8mr21555319paw.28.1347276841432; Mon, 10 Sep 2012 04:34:01 -0700 (PDT) Received: from mail-pz0-f50.google.com (mail-pz0-f50.google.com [209.85.210.50]) by mx.google.com with ESMTPS id ip5si20046617pbc.288.2012.09.10.04.34.01 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 10 Sep 2012 04:34:01 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.210.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by dade7 with SMTP id e7so1577770dad.37 for ; Mon, 10 Sep 2012 04:34:01 -0700 (PDT) Received: by 10.66.76.106 with SMTP id j10mr21455058paw.51.1347276840780; Mon, 10 Sep 2012 04:34:00 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id ho7sm7929234pbc.3.2012.09.10.04.33.57 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 10 Sep 2012 04:33:59 -0700 (PDT) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: akpm@linux-foundation.org, viro@zeniv.linux.org.uk, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH] proc: Use NULL instead of 0 for pointer Date: Mon, 10 Sep 2012 17:00:50 +0530 Message-Id: <1347276650-8130-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQmnk8YQepBH0lTlFHj+0oD9qR00Vd2U4C4aJF0oINSnam4ZzK6qBERq1YWbTeLJpKUND8UP This cleanup also fixes the following sparse warning: fs/proc/root.c:64:45: warning: Using plain integer as NULL pointer Signed-off-by: Sachin Kamat --- fs/proc/root.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/proc/root.c b/fs/proc/root.c index 9a2d9fd..9889a92 100644 --- a/fs/proc/root.c +++ b/fs/proc/root.c @@ -61,7 +61,7 @@ static int proc_parse_options(char *options, struct pid_namespace *pid) if (!*p) continue; - args[0].to = args[0].from = 0; + args[0].to = args[0].from = NULL; token = match_token(p, tokens, args); switch (token) { case Opt_gid: