[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 for-2.2 0/8] about Yoda conditions
From: |
arei.gonglei |
Subject: |
[Qemu-devel] [PATCH v2 for-2.2 0/8] about Yoda conditions |
Date: |
Fri, 1 Aug 2014 10:32:37 +0800 |
From: Gonglei <address@hidden>
$WHATEVER: don't use 'Yoda conditions'
'Yoda conditions' are not part of idiomatic QEMU coding
style, so rewrite them in the more usual order.
v2:
- add more specific commit messages suggested by PMM, thanks.
- introduce section of conditional statement to CODING_STYLE.
Gonglei (8):
CODING_STYLE: Section about conditional statement
usb: a trivial code change for more idiomatic writing style
audio: a trivial code change for more idiomatic writing style
isa-bus: a trivial code change for more idiomatic writing style
a trivial code change for more idiomatic writing style
spice: a trivial code change for more idiomatic writing style
vl: a trivial code change for more idiomatic writing style
vmxnet3: a trivial code change for more idiomatic writing style
CODING_STYLE | 19 +++++++++++++++++++
hw/audio/gus.c | 2 +-
hw/audio/hda-codec.c | 3 ++-
hw/audio/sb16.c | 6 +++---
hw/isa/isa-bus.c | 2 +-
hw/net/vmxnet3.c | 16 ++++++++--------
hw/usb/dev-audio.c | 2 +-
hw/usb/dev-mtp.c | 4 ++--
hw/usb/hcd-ehci.c | 2 +-
qdev-monitor.c | 2 +-
qemu-char.c | 2 +-
ui/spice-core.c | 4 ++--
util/qemu-sockets.c | 2 +-
vl.c | 5 +++--
14 files changed, 46 insertions(+), 25 deletions(-)
--
1.7.12.4
- [Qemu-devel] [PATCH v2 for-2.2 0/8] about Yoda conditions,
arei.gonglei <=
[Qemu-devel] [PATCH v2 1/8] CODING_STYLE: Section about conditional statement, arei.gonglei, 2014/07/31