Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] cpuset: remove useless local variable initialization

Remove a useless variable initialization in cpuset __cpuset_zone_allowed().
The local variable 'allowed' is unconditionally set before use, later on
in the code, so does not need to be initialized.

Not that it seems to matter to the code generated any, as the compiler
optimizes out the superfluous assignment anyway.

Signed-off-by: Paul Jackson <pj@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Paul Jackson and committed by
Linus Torvalds
29afd49b b2455396

+1 -1
+1 -1
kernel/cpuset.c
··· 2205 2205 { 2206 2206 int node; /* node that zone z is on */ 2207 2207 const struct cpuset *cs; /* current cpuset ancestors */ 2208 - int allowed = 1; /* is allocation in zone z allowed? */ 2208 + int allowed; /* is allocation in zone z allowed? */ 2209 2209 2210 2210 if (in_interrupt()) 2211 2211 return 1;