diff options
author | Gonglei <arei.gonglei@huawei.com> | 2014-08-11 21:00:52 +0800 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2014-08-15 18:54:06 +0400 |
commit | d0657b2aab6f2a342aae2897e41d10061a9a6992 (patch) | |
tree | 089fa37202d2689061295f0228db7ec1ad17737d /hw/usb/hcd-ehci.c | |
parent | 2bb0020cf97c938f8339c76fa8a0da6353e8d27e (diff) | |
download | qemu-d0657b2aab6f2a342aae2897e41d10061a9a6992.zip |
usb: don't use 'Yoda conditions'
imitate nearby code about using '!value' or 'value == NULL'
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw/usb/hcd-ehci.c')
-rw-r--r-- | hw/usb/hcd-ehci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c index a00a93c3eb..448e0073dd 100644 --- a/hw/usb/hcd-ehci.c +++ b/hw/usb/hcd-ehci.c @@ -1596,7 +1596,7 @@ static EHCIQueue *ehci_state_fetchqh(EHCIState *ehci, int async) entry = ehci_get_fetch_addr(ehci, async); q = ehci_find_queue_by_qh(ehci, entry, async); - if (NULL == q) { + if (q == NULL) { q = ehci_alloc_queue(ehci, entry, async); } |