Skip to content

Commit 0786f7b

Browse files
haokexintorvalds
authored andcommitted
kernel/resource.c: remove the unneeded assignment in function __find_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>
1 parent 4b30f07 commit 0786f7b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

kernel/resource.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,6 @@ static int __find_resource(struct resource *root, struct resource *old,
449449
struct resource *this = root->child;
450450
struct resource tmp = *new, avail, alloc;
451451

452-
tmp.flags = new->flags;
453452
tmp.start = root->start;
454453
/*
455454
* Skip past an allocated resource that starts at 0, since the assignment

0 commit comments

Comments
 (0)