[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-arm] [PATCH v4 5/8] hw/i2c: Tidy up NULL check for i2c slave init
From: |
Alastair D'Silva |
Subject: |
[Qemu-arm] [PATCH v4 5/8] hw/i2c: Tidy up NULL check for i2c slave init callbacks |
Date: |
Thu, 15 Dec 2016 16:48:09 +1100 |
From: Alastair D'Silva <address@hidden>
Remove unnecessary syntax
Signed-off-by: Alastair D'Silva <address@hidden>
---
hw/i2c/core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/i2c/core.c b/hw/i2c/core.c
index ae3ca94..e40781e 100644
--- a/hw/i2c/core.c
+++ b/hw/i2c/core.c
@@ -262,9 +262,9 @@ static int i2c_slave_qdev_init(DeviceState *dev)
if (sc->init) {
return sc->init(s);
- } else {
- return 0;
}
+
+ return 0;
}
DeviceState *i2c_create_slave(I2CBus *bus, const char *name, uint8_t addr)
--
2.9.3
- [Qemu-arm] [PATCH v4 0/8] Add support for the Epson RX8900 RTC to the aspeed board, Alastair D'Silva, 2016/12/15
- [Qemu-arm] [PATCH v4 7/8] tests: Test all implemented RX8900 functionality, Alastair D'Silva, 2016/12/15
- [Qemu-arm] [PATCH v4 3/8] qtest: Support setting named GPIOs, Alastair D'Silva, 2016/12/15
- [Qemu-arm] [PATCH v4 6/8] hw/timer: Add Epson RX8900 RTC support, Alastair D'Silva, 2016/12/15
- [Qemu-arm] [PATCH v4 2/8] qtest: Support named interrupts, Alastair D'Silva, 2016/12/15
- [Qemu-arm] [PATCH v4 1/8] arm: Uniquely name imx25 I2C buses., Alastair D'Silva, 2016/12/15
- [Qemu-arm] [PATCH v4 4/8] qtest: Fix whitespace, Alastair D'Silva, 2016/12/15
- [Qemu-arm] [PATCH v4 8/8] arm: Add an RX8900 RTC to the ASpeed board, Alastair D'Silva, 2016/12/15
- [Qemu-arm] [PATCH v4 5/8] hw/i2c: Tidy up NULL check for i2c slave init callbacks,
Alastair D'Silva <=