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 <[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]>
1 parent 4b30f07 commit 0786f7b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

kernel/resource.c

-1
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)