Skip to content

Commit

Permalink
kernel/resource.c: remove the unneeded assignment in function __find_…
Browse files Browse the repository at this point in the history
…resource

This line was introduced by fcb1191 ("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>
  • Loading branch information
haokexin authored and torvalds committed Jul 3, 2013
1 parent 4b30f07 commit 0786f7b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion kernel/resource.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0786f7b

Please sign in to comment.