From: Fam Zheng <famz@redhat.com>
To: qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>, Don Koch <dkoch@verizon.com>,
Markus Armbruster <armbru@redhat.com>,
Stefan Hajnoczi <stefanha@redhat.com>,
Max Reitz <mreitz@redhat.com>
Subject: [Qemu-devel] [PATCH v4 5/6] vmdk: Remove unnecessary initialization
Date: Thu, 4 Dec 2014 07:28:33 +0800 [thread overview]
Message-ID: <1417649314-13704-6-git-send-email-famz@redhat.com> (raw)
In-Reply-To: <1417649314-13704-1-git-send-email-famz@redhat.com>
It will be assigned to the return value of vmdk_read_desc.
Suggested-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Don Koch <dkoch@verizon.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
---
block/vmdk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/block/vmdk.c b/block/vmdk.c
index b703395..da2d323 100644
--- a/block/vmdk.c
+++ b/block/vmdk.c
@@ -914,7 +914,7 @@ exit:
static int vmdk_open(BlockDriverState *bs, QDict *options, int flags,
Error **errp)
{
- char *buf = NULL;
+ char *buf;
int ret;
BDRVVmdkState *s = bs->opaque;
uint32_t magic;
--
1.9.3
next prev parent reply other threads:[~2014-12-03 23:29 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-03 23:28 [Qemu-devel] [PATCH v4 0/6] vmdk: A few small fixes Fam Zheng
2014-12-03 23:28 ` [Qemu-devel] [PATCH v4 1/6] vmdk: Use g_random_int to generate CID Fam Zheng
2014-12-03 23:28 ` [Qemu-devel] [PATCH v4 2/6] vmdk: Fix comment to match code of extent lines Fam Zheng
2014-12-04 8:59 ` Max Reitz
2014-12-04 9:14 ` Markus Armbruster
2014-12-04 14:18 ` Don Koch
2014-12-03 23:28 ` [Qemu-devel] [PATCH v4 3/6] vmdk: Clean up descriptor file reading Fam Zheng
2014-12-03 23:28 ` [Qemu-devel] [PATCH v4 4/6] vmdk: Check descriptor file length when reading it Fam Zheng
2014-12-04 9:00 ` Max Reitz
2014-12-04 9:14 ` Markus Armbruster
2014-12-04 14:18 ` Don Koch
2014-12-03 23:28 ` Fam Zheng [this message]
2014-12-03 23:28 ` [Qemu-devel] [PATCH v4 6/6] vmdk: Set errp on failures in vmdk_open_vmdk4 Fam Zheng
2014-12-04 14:27 ` [Qemu-devel] [PATCH v4 0/6] vmdk: A few small fixes Max Reitz
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=1417649314-13704-6-git-send-email-famz@redhat.com \
--to=famz@redhat.com \
--cc=armbru@redhat.com \
--cc=dkoch@verizon.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.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;
as well as URLs for NNTP newsgroup(s).