lkml.org 
[lkml]   [2013]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] resource: remove the unneeded assignment in function __find_resource
Date
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


\
 
 \ /
  Last update: 2013-05-16 13:21    [W:0.022 / U:1.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site