diff options
author | Kevin Hao <haokexin@gmail.com> | 2013-07-03 18:09:16 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-03 19:08:06 -0400 |
commit | 0786f7b225ba1edd801dc4bfbf6191d058b943a2 (patch) | |
tree | a8e18fc8de102ba01378d69f02f296814672acf0 /kernel/resource.c | |
parent | 4b30f07e74d2df673925019ad58bc59a719df3bb (diff) |
kernel/resource.c: remove the unneeded assignment in function __find_resource
This line was introduced by fcb11918 ("resources: add arch hook for
preventing allocation in reserved areas"). But the struct tmp was already
assigned to *new in the above line, so this seems superfluous. Just
remove it.
Signed-off-by: Kevin Hao <haokexin@gmail.com>
Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/resource.c')
-rw-r--r-- | kernel/resource.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/resource.c b/kernel/resource.c index 77bf11a86c7d..3f285dce9347 100644 --- a/kernel/resource.c +++ b/kernel/resource.c | |||
@@ -449,7 +449,6 @@ static int __find_resource(struct resource *root, struct resource *old, | |||
449 | struct resource *this = root->child; | 449 | struct resource *this = root->child; |
450 | struct resource tmp = *new, avail, alloc; | 450 | struct resource tmp = *new, avail, alloc; |
451 | 451 | ||
452 | tmp.flags = new->flags; | ||
453 | tmp.start = root->start; | 452 | tmp.start = root->start; |
454 | /* | 453 | /* |
455 | * Skip past an allocated resource that starts at 0, since the assignment | 454 | * Skip past an allocated resource that starts at 0, since the assignment |