]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/sd/sdcard: Simplify realize() a bit
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Wed, 6 Jun 2018 01:28:51 +0000 (22:28 -0300)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 3 Sep 2020 00:06:19 +0000 (19:06 -0500)
commit6a34f7752f05efbd0f26ea87f9e022469b4ac0d2
tree768c81a6c6124e13890bc3092592f717d58549ab
parent557980ba70dba65bde208b03b902f419921b307a
hw/sd/sdcard: Simplify realize() a bit

We don't need to check if sd->blk is set twice.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20200630133912.9428-18-f4bug@amsat.org>
(cherry picked from commit 6dd3a164f5b31c703c7d8372841ad3bd6a57de6d)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/sd/sd.c