commit | 2bb0020cf97c938f8339c76fa8a0da6353e8d27e | [log] [tgz] |
---|---|---|
author | Gonglei <arei.gonglei@huawei.com> | Mon Aug 11 21:00:51 2014 +0800 |
committer | Michael Tokarev <mjt@tls.msk.ru> | Fri Aug 15 18:54:06 2014 +0400 |
tree | 86c6427b2cbcb61e357da559630f2f1fdc5e2bdc | |
parent | 30dc600bbfe2c927440fd611d585d7a2acb42fbf [diff] |
CODING_STYLE: Section about conditional statement Yoda conditions lack readability, and QEMU has a strict compiler configuration for checking a common mistake like "if (dev = NULL)". Make it a written rule. Signed-off-by: Gonglei <arei.gonglei@huawei.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>