mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kevin Hao <haokexin@gmail.com>
To: Bjorn Helgaas <bjorn.helgaas@hp.com>,
	Andrew Morton <akpm@linux-foundation.org>
Cc: <linux-kernel@vger.kernel.org>
Subject: [PATCH] resource: remove the unneeded assignment in function __find_resource
Date: Thu, 16 May 2013 18:43:05 +0800	[thread overview]
Message-ID: <1368700985-24934-1-git-send-email-haokexin@gmail.com> (raw)

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


                 reply	other threads:[~2013-05-16 10:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1368700985-24934-1-git-send-email-haokexin@gmail.com \
    --to=haokexin@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=bjorn.helgaas@hp.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®