Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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@gmail.com>
Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Kevin Hao and committed by
Linus Torvalds
0786f7b2 4b30f07e

-1
-1
kernel/resource.c
··· 449 449 struct resource *this = root->child; 450 450 struct resource tmp = *new, avail, alloc; 451 451 452 - tmp.flags = new->flags; 453 452 tmp.start = root->start; 454 453 /* 455 454 * Skip past an allocated resource that starts at 0, since the assignment