hw/sd/sdcard: Only call sd_req_get_address() where address is used
commit6a226b2cab40f9d40be5de59230d80d9aa11bc42
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 20 Jun 2024 12:29:46 +0000 (20 14:29 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 24 Jun 2024 08:41:42 +0000 (24 10:41 +0200)
treeaf4a77357024795eb2e258e7fbfe181774244260
parent8b91a5613ca1520286b7c3ffe19ebecf144c781a
hw/sd/sdcard: Only call sd_req_get_address() where address is used

It will be useful later to assert only ADTC commands
(Addressed point-to-point Data Transfer Commands, defined
as the 'sd_adtc' enum) extract the address value from the
command argument.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Tested-by: Cédric Le Goater <clg@redhat.com>
Message-Id: <20240621080554.18986-18-philmd@linaro.org>
hw/sd/sd.c