Skip to contentSkip to conversation

+ kernel-resourcec-remove-the-unneeded-assignment-in-function-__find_resource.patch added to -mm tree

PATCH [email protected] 1 participant 1 message May 24, 2013

lore
Share & tools
lore
#0 lore raw

Subject: + kernel-resourcec-remove-the-unneeded-assignment-in-function-__find_resource.patch added to -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 24 May 2013 13:50:17 -0700

The patch titled
Subject: kernel/resource.c: remove the unneeded assignment in function __find_resource
has been added to the -mm tree. Its filename is
kernel-resourcec-remove-the-unneeded-assignment-in-function-__find_resource.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Kevin Hao <[email protected]>
Subject: kernel/resource.c: remove the unneeded assignment in function __find_resource

This line was introduced by 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 renamed from kernel/resource.c~kernel-resourcec-remove-the-unneeded-assignment-in-function-__find_resource +0 -1
diff -puN kernel/resource.c~kernel-resourcec-remove-the-unneeded-assignment-in-function-__find_resource kernel/resource.c
@@ -448,7 +448,6 @@ static int __find_resource(struct resour
 	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

_

Patches currently in -mm which might be from [email protected] are

kernel-resourcec-remove-the-unneeded-assignment-in-function-__find_resource.patch