From: Kevin Wolf <kwolf@redhat.com>
To: Alexander Graf <agraf@suse.de>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] ahci: Remove unused struct member
Date: Fri, 09 Sep 2011 13:22:21 +0200 [thread overview]
Message-ID: <4E69F6ED.9050906@redhat.com> (raw)
In-Reply-To: <3BE4ED96-E111-4D77-9D0A-8D330C0C3F55@suse.de>
Am 09.09.2011 11:43, schrieb Alexander Graf:
>
> On 09.09.2011, at 11:15, Kevin Wolf wrote:
>
>> Am 08.09.2011 21:44, schrieb Stefan Weil:
>>> Member variable is_read is written, but never read
>>> (contrary to its name).
>>
>> Nice commit message :-)
>>
>>> Kevin Wolf <kwolf@redhat.com>
>>> Signed-off-by: Stefan Weil <weil@mail.berlios.de>
>>> ---
>>> hw/ide/ahci.c | 2 --
>>> hw/ide/ahci.h | 1 -
>>> 2 files changed, 0 insertions(+), 3 deletions(-)
>>>
>>> diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c
>>> index f4fa154..a8659cf 100644
>>> --- a/hw/ide/ahci.c
>>> +++ b/hw/ide/ahci.c
>>> @@ -754,7 +754,6 @@ static void process_ncq_command(AHCIState *s, int port, uint8_t *cmd_fis,
>>> case READ_FPDMA_QUEUED:
>>> DPRINTF(port, "NCQ reading %d sectors from LBA %ld, tag %d\n",
>>> ncq_tfs->sector_count-1, ncq_tfs->lba, ncq_tfs->tag);
>>> - ncq_tfs->is_read = 1;
>>>
>>> DPRINTF(port, "tag %d aio read %ld\n", ncq_tfs->tag, ncq_tfs->lba);
>>>
>>> @@ -768,7 +767,6 @@ static void process_ncq_command(AHCIState *s, int port, uint8_t *cmd_fis,
>>> case WRITE_FPDMA_QUEUED:
>>> DPRINTF(port, "NCQ writing %d sectors to LBA %ld, tag %d\n",
>>> ncq_tfs->sector_count-1, ncq_tfs->lba, ncq_tfs->tag);
>>> - ncq_tfs->is_read = 0;
>>>
>>> DPRINTF(port, "tag %d aio write %ld\n", ncq_tfs->tag, ncq_tfs->lba);
>>>
>>> diff --git a/hw/ide/ahci.h b/hw/ide/ahci.h
>>> index 3c29d93..5de986c 100644
>>> --- a/hw/ide/ahci.h
>>> +++ b/hw/ide/ahci.h
>>> @@ -259,7 +259,6 @@ typedef struct NCQTransferState {
>>> BlockDriverAIOCB *aiocb;
>>> QEMUSGList sglist;
>>> BlockAcctCookie acct;
>>> - int is_read;
>>> uint16_t sector_count;
>>> uint64_t lba;
>>> uint8_t tag;
>>
>> Alex, any specific reason you introduced it for? Is it unnecessary or is
>> it a bug that it has no user?
>
> This is a leftover from before the code went upstream. It can easily go away :)
Great, thanks. Applied to the block branch.
Kevin
prev parent reply other threads:[~2011-09-09 11:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-08 19:44 [Qemu-devel] [PATCH] ahci: Remove unused struct member Stefan Weil
2011-09-09 9:15 ` Kevin Wolf
2011-09-09 9:43 ` Alexander Graf
2011-09-09 11:22 ` Kevin Wolf [this message]
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=4E69F6ED.9050906@redhat.com \
--to=kwolf@redhat.com \
--cc=agraf@suse.de \
--cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).