mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] resource: remove the unneeded assignment in function __find_resource
@ 2013-05-16 10:43 Kevin Hao
  0 siblings, 0 replies; only message in thread
From: Kevin Hao @ 2013-05-16 10:43 UTC (permalink / raw)
  To: Bjorn Helgaas, Andrew Morton; +Cc: linux-kernel

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.

Signed-off-by: Kevin Hao <haokexin@gmail.com>
---
 kernel/resource.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/kernel/resource.c b/kernel/resource.c
index d738698..3241516 100644
--- a/kernel/resource.c
+++ b/kernel/resource.c
@@ -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
-- 
1.8.1.4


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-05-16 10:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-16 10:43 [PATCH] resource: remove the unneeded assignment in function __find_resource Kevin Hao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®