From: Bojan Prtvar <prtvar.b@gmail.com>
To: toshi.kani@hp.com, dan.j.williams@intel.com,
akpm@linux-foundation.org, jsitnicki@gmail.com,
jiang.liu@linux.intel.com
Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org,
Bojan Prtvar <prtvar.b@gmail.com>
Subject: [PATCH] resources: Remove unneeded initialization of local variable
Date: Tue, 29 Dec 2015 14:24:53 +0100 [thread overview]
Message-ID: <1451395493-22380-1-git-send-email-prtvar.b@gmail.com> (raw)
Few lines below dr is reinitialized by devres_alloc()
so we don't need to init it by NULL in the beginning of
__devm_request_region()
Signed-off-by: Bojan Prtvar <prtvar.b@gmail.com>
---
kernel/resource.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/resource.c b/kernel/resource.c
index f150dbb..1e48ede 100644
--- a/kernel/resource.c
+++ b/kernel/resource.c
@@ -1356,7 +1356,7 @@ struct resource * __devm_request_region(struct device *dev,
struct resource *parent, resource_size_t start,
resource_size_t n, const char *name)
{
- struct region_devres *dr = NULL;
+ struct region_devres *dr;
struct resource *res;
dr = devres_alloc(devm_region_release, sizeof(struct region_devres),
--
2.4.1
next reply other threads:[~2015-12-29 13:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-29 13:24 Bojan Prtvar [this message]
2015-12-29 13:36 ` Laurent Navet
2015-12-29 15:04 ` bojan prtvar
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=1451395493-22380-1-git-send-email-prtvar.b@gmail.com \
--to=prtvar.b@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=dan.j.williams@intel.com \
--cc=jiang.liu@linux.intel.com \
--cc=jsitnicki@gmail.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=toshi.kani@hp.com \
/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®