]> git.proxmox.com Git - mirror_qemu.git/commit
i2c: Don't check return value from i2c_recv()
authorCorey Minyard <cminyard@mvista.com>
Tue, 20 Nov 2018 17:13:42 +0000 (11:13 -0600)
committerCorey Minyard <cminyard@mvista.com>
Thu, 28 Feb 2019 03:06:08 +0000 (21:06 -0600)
commitbc15cde0c4acc9128f26ff78f99ce34a59200d5e
tree7faa1aea444e191365aacec055a9dec8bde235b6
parent05f9f17e2caf249e9454f43e0c3751b2d06e1c06
i2c: Don't check return value from i2c_recv()

i2c_recv() cannot fail, so there is no need to check the return
value.  It also returns unt8_t, so comparing with < 0 is not
meaningful.

Fix up various I2C controllers to remove the unneeded code.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Suggested-by: Peter Maydell <peter.maydell@linaro.org>
hw/i2c/aspeed_i2c.c
hw/i2c/exynos4210_i2c.c
hw/i2c/imx_i2c.c