]> Git Repo - qemu.git/commit
hw/sd: sdhci: Simplify updating s->prnsts in sdhci_sdma_transfer_multi_blocks()
authorBin Meng <[email protected]>
Tue, 16 Feb 2021 03:46:52 +0000 (11:46 +0800)
committerPhilippe Mathieu-Daudé <[email protected]>
Fri, 19 Feb 2021 23:19:13 +0000 (00:19 +0100)
commit8bc1f1aa51d32c3184e7b19d5b94c35ecc06f056
treed8197ddc8a7f958faafb424b2947abe37f0e93d6
parentc557e08d9c9729cdf6b98f7a9c1ebf72fa25e916
hw/sd: sdhci: Simplify updating s->prnsts in sdhci_sdma_transfer_multi_blocks()

s->prnsts is updated in both branches of the if () else () statement.
Move the common bits outside so that it is cleaner.

Signed-off-by: Bin Meng <[email protected]>
Tested-by: Alexander Bulekov <[email protected]>
Reviewed-by: Alexander Bulekov <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Message-Id: <1613447214[email protected]>
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
hw/sd/sdhci.c
This page took 0.024878 seconds and 4 git commands to generate.