aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Hao <[email protected]>2013-07-03 15:09:16 -0700
committerLinus Torvalds <[email protected]>2013-07-03 16:08:06 -0700
commit0786f7b225ba1edd801dc4bfbf6191d058b943a2 (patch)
treea8e18fc8de102ba01378d69f02f296814672acf0
parent4b30f07e74d2df673925019ad58bc59a719df3bb (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 <[email protected]> Cc: Bjorn Helgaas <[email protected]> Cc: Jesse Barnes <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--kernel/resource.c1
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,
struct resource *this = root->child;
struct resource tmp = *new, avail, alloc;
- tmp.flags = new->flags;
tmp.start = root->start;
/*
* Skip past an allocated resource that starts at 0, since the assignment