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>
This commit is contained in:
Gonglei 2014-08-11 21:00:55 +08:00 committed by Michael Tokarev
parent 337a3e5c7d
commit 8108fd3e26
3 changed files with 3 additions and 3 deletions

View file

@ -4121,7 +4121,7 @@ void qmp_chardev_remove(const char *id, Error **errp)
CharDriverState *chr;
chr = qemu_chr_find(id);
if (NULL == chr) {
if (chr == NULL) {
error_setg(errp, "Chardev '%s' not found", id);
return;
}