From: Paul Jackson <[email protected]>
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 <[email protected]>
---
kernel/cpuset.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
--- 2.6.16-rc6-mm2.orig/kernel/cpuset.c 2006-03-18 21:50:34.801260046 -0800
+++ 2.6.16-rc6-mm2/kernel/cpuset.c 2006-03-18 21:50:47.036753643 -0800
@@ -2205,7 +2205,7 @@ int __cpuset_zone_allowed(struct zone *z
{
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;
--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <[email protected]> 1.650.933.1373
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]