All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Snow <jsnow@redhat.com>
To: qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org, mjt@tls.msk.ru
Subject: Re: [Qemu-trivial] [Qemu-devel] [PATCH] qtest/ahci: fix redundant assertion
Date: Thu, 1 Oct 2015 12:39:53 -0400	[thread overview]
Message-ID: <560D61D9.3030609@redhat.com> (raw)
In-Reply-To: <1442868929-17777-1-git-send-email-jsnow@redhat.com>



On 09/21/2015 04:55 PM, John Snow wrote:
> Fixes https://bugs.launchpad.net/qemu/+bug/1497711
> 
> (!ncq || (ncq && lba48)) is the same as
> (!ncq || lba48).
> 
> The intention is simply: "If a command is NCQ,
> it must also be LBA48."
> 
> Signed-off-by: John Snow <jsnow@redhat.com>
> ---
>  tests/libqos/ahci.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/libqos/ahci.c b/tests/libqos/ahci.c
> index cf66b3e..adb2665 100644
> --- a/tests/libqos/ahci.c
> +++ b/tests/libqos/ahci.c
> @@ -742,7 +742,7 @@ AHCICommand *ahci_command_create(uint8_t command_name)
>      g_assert(!(props->lba28 && props->lba48));
>      g_assert(!(props->read && props->write));
>      g_assert(!props->size || props->data);
> -    g_assert(!props->ncq || (props->ncq && props->lba48));
> +    g_assert(!props->ncq || props->lba48);
>  
>      /* Defaults and book-keeping */
>      cmd->props = props;
> 

Tentatively staged. Barring objections, I will send a pull request for
this tomorrow, thanks.

https://github.com/jnsnow/qemu/commits/ide
https://github.com/jnsnow/qemu.git

--js


WARNING: multiple messages have this Message-ID (diff)
From: John Snow <jsnow@redhat.com>
To: qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org, mjt@tls.msk.ru
Subject: Re: [Qemu-devel] [PATCH] qtest/ahci: fix redundant assertion
Date: Thu, 1 Oct 2015 12:39:53 -0400	[thread overview]
Message-ID: <560D61D9.3030609@redhat.com> (raw)
In-Reply-To: <1442868929-17777-1-git-send-email-jsnow@redhat.com>



On 09/21/2015 04:55 PM, John Snow wrote:
> Fixes https://bugs.launchpad.net/qemu/+bug/1497711
> 
> (!ncq || (ncq && lba48)) is the same as
> (!ncq || lba48).
> 
> The intention is simply: "If a command is NCQ,
> it must also be LBA48."
> 
> Signed-off-by: John Snow <jsnow@redhat.com>
> ---
>  tests/libqos/ahci.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/libqos/ahci.c b/tests/libqos/ahci.c
> index cf66b3e..adb2665 100644
> --- a/tests/libqos/ahci.c
> +++ b/tests/libqos/ahci.c
> @@ -742,7 +742,7 @@ AHCICommand *ahci_command_create(uint8_t command_name)
>      g_assert(!(props->lba28 && props->lba48));
>      g_assert(!(props->read && props->write));
>      g_assert(!props->size || props->data);
> -    g_assert(!props->ncq || (props->ncq && props->lba48));
> +    g_assert(!props->ncq || props->lba48);
>  
>      /* Defaults and book-keeping */
>      cmd->props = props;
> 

Tentatively staged. Barring objections, I will send a pull request for
this tomorrow, thanks.

https://github.com/jnsnow/qemu/commits/ide
https://github.com/jnsnow/qemu.git

--js

  reply	other threads:[~2015-10-08  6:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-21 20:55 [Qemu-trivial] [PATCH] qtest/ahci: fix redundant assertion John Snow
2015-09-21 20:55 ` [Qemu-devel] " John Snow
2015-10-01 16:39 ` John Snow [this message]
2015-10-01 16:39   ` John Snow
2015-10-04 16:18 ` [Qemu-trivial] " Michael Tokarev
2015-10-04 16:18   ` [Qemu-devel] " Michael Tokarev

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=560D61D9.3030609@redhat.com \
    --to=jsnow@redhat.com \
    --cc=mjt@tls.msk.ru \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.