diff options
| author | Shawn Lin <shawn.lin@rock-chips.com> | 2026-01-06 10:17:04 +0800 |
|---|---|---|
| committer | Ulf Hansson <ulf.hansson@linaro.org> | 2026-02-23 12:06:54 +0100 |
| commit | 7597d68cea6827f721e66b69d85e50e8ba820b09 (patch) | |
| tree | 427e9aa9fea0b530ed7f7b909b61742032a362ee /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 29d3f6a64376eff2d44e1f181d7770434b05274b (diff) | |
mmc: dw_mmc: Improve dw_mci_get_cd()
The current dw_mci_get_cd() implementation maintains a DW_MMC_CARD_PRESENT
flag primarily for logging purposes, which adds unnecessary complexity.
Additionally, the if-else-elif control flow does not align with the Linux
kernel coding style.
This commit simplifies the function by:
- Removing the redundant card presence flag
- Replacing the conditional chain with a cleaner implementation
- Improving code readability while maintaining functionality
The change reduces code complexity without affecting the actual card
detection behavior.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
