projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b30f07
)
kernel/resource.c: remove the unneeded assignment in function __find_resource
author
Kevin Hao
<
[email protected]
>
Wed, 3 Jul 2013 22:09:16 +0000
(15:09 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 3 Jul 2013 23:08:06 +0000
(16:08 -0700)
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]
>
kernel/resource.c
patch
|
blob
|
history
diff --git
a/kernel/resource.c
b/kernel/resource.c
index 77bf11a86c7d27ffde2d0cf3545d0110937a5a02..3f285dce9347191537b8d13f8db53f869d4744ad 100644
(file)
--- 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