diff options
author | Alastair D'Silva | 2016-12-27 15:59:29 +0100 |
---|---|---|
committer | Peter Maydell | 2016-12-27 15:59:29 +0100 |
commit | 9e41bade85ef338afd983c109368d1bbbe931f80 (patch) | |
tree | 2356fb69bf69a56f9b21f05945dc368f7c137284 /hw/arm/aspeed.c | |
parent | hw/arm: remove trailing whitespace (diff) | |
download | qemu-9e41bade85ef338afd983c109368d1bbbe931f80.tar.gz qemu-9e41bade85ef338afd983c109368d1bbbe931f80.tar.xz qemu-9e41bade85ef338afd983c109368d1bbbe931f80.zip |
hw/i2c: Add a NULL check for i2c slave init callbacks
Add a NULL check for i2c slave init callbacks, so that we no longer
need to implement empty init functions.
Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
Message-id: 20161202054617.6749-4-alastair@au1.ibm.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
[PMM: squashed in later tweak from Alistair to if() phrasing]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm/aspeed.c')
0 files changed, 0 insertions, 0 deletions