diff options
| author | Gonglei | 2014-08-11 15:00:55 +0200 |
|---|---|---|
| committer | Michael Tokarev | 2014-08-15 16:54:07 +0200 |
| commit | 8108fd3e26236c14138b87e1081ec2b7b86e5132 (patch) | |
| tree | 374263bdd5fbdb8102c271c0aa3b026a8e88ec12 /util | |
| parent | isa-bus: don't use 'Yoda conditions' (diff) | |
| download | qemu-8108fd3e26236c14138b87e1081ec2b7b86e5132.tar.gz qemu-8108fd3e26236c14138b87e1081ec2b7b86e5132.tar.xz qemu-8108fd3e26236c14138b87e1081ec2b7b86e5132.zip | |
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 'util')
| -rw-r--r-- | util/qemu-sockets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/qemu-sockets.c b/util/qemu-sockets.c index 74cf0786e5..5d38395f2d 100644 --- a/util/qemu-sockets.c +++ b/util/qemu-sockets.c @@ -732,7 +732,7 @@ int unix_connect_opts(QemuOpts *opts, Error **errp, ConnectState *connect_state = NULL; int sock, rc; - if (NULL == path) { + if (path == NULL) { error_setg(errp, "unix connect: no path specified"); return -1; } |
