]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
fs/proc/root.c: use NULL instead of 0 for pointer
authorSachin Kamat <sachin.kamat@linaro.org>
Thu, 13 Sep 2012 01:01:30 +0000 (11:01 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 13 Sep 2012 07:28:18 +0000 (17:28 +1000)
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 <sachin.kamat@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/proc/root.c

index 9a2d9fd7cadd2acde77a4e00615f9bbafefc8d96..9889a92d2e01773113a5c7db29975cb47d7dcb1d 100644 (file)
@@ -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: