From: Paul Jackson Date: Fri, 24 Mar 2006 11:16:12 +0000 (-0800) Subject: [PATCH] cpuset: remove useless local variable initialization X-Git-Tag: v2.6.17-rc1~918 X-Git-Url: http://ftp.safe.ca/?a=commitdiff_plain;h=29afd49b72a9b2c26fa8c678bcf3976d0540446b;p=safe%2Fjmp%2Flinux-2.6 [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/cpuset.c b/kernel/cpuset.c index 7029286..18aea1b 100644 --- a/kernel/cpuset.c +++ b/kernel/cpuset.c @@ -2205,7 +2205,7 @@ int __cpuset_zone_allowed(struct zone *z, gfp_t gfp_mask) { int node; /* node that zone z is on */ const struct cpuset *cs; /* current cpuset ancestors */ - int allowed = 1; /* is allocation in zone z allowed? */ + int allowed; /* is allocation in zone z allowed? */ if (in_interrupt()) return 1;