Subject: + kernel-resourcec-remove-the-unneeded-assignment-in-function-__find_resource.patch added to -mm tree To: haokexin@xxxxxxxxx,bjorn.helgaas@xxxxxx,jbarnes@xxxxxxxxxxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx 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 <haokexin@xxxxxxxxx> 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. Signed-off-by: Kevin Hao <haokexin@xxxxxxxxx> Cc: Bjorn Helgaas <bjorn.helgaas@xxxxxx> Cc: Jesse Barnes <jbarnes@xxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/resource.c | 1 - 1 file changed, 1 deletion(-) diff -puN kernel/resource.c~kernel-resourcec-remove-the-unneeded-assignment-in-function-__find_resource kernel/resource.c --- a/kernel/resource.c~kernel-resourcec-remove-the-unneeded-assignment-in-function-__find_resource +++ a/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 haokexin@xxxxxxxxx are kernel-resourcec-remove-the-unneeded-assignment-in-function-__find_resource.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html