Skip to contentSkip to conversation

resource: remove the unneeded assignment in function __find_resource

PATCH New Kevin Hao 1 participant 1 message May 16, 2013

lore
Share & tools
lore

Kevin Hao

author
#0 lore raw

PATCH 1/1 resource: remove the unneeded assignment in function __find_resource

This line was introduced by commit 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.

---
 kernel/resource.c | 1 -
 1 file changed, 1 deletion(-)
kernel/resource.c +0 -1
index d738698..3241516 100644
@@ -448,7 +448,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
Signature · 1 line
1.8.1.4