diff options
| author | Ulf Hansson <[email protected]> | 2021-02-12 14:15:32 +0100 |
|---|---|---|
| committer | Ulf Hansson <[email protected]> | 2021-03-30 11:41:58 +0200 |
| commit | fefdd3c91e0a7b3cbb3f25925d93a57c45cb0f31 (patch) | |
| tree | 114e3e85efb226b6e6f7ff4210a7f9ce34ed4ba3 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | 147186f531ae49c18b7a9091a2c40e83b3d95649 (diff) | |
mmc: core: Drop superfluous validations in mmc_hw|sw_reset()
The mmc_hw|sw_reset() APIs are designed to be called solely from upper
layers, which means drivers that operates on top of the struct mmc_card,
like the mmc block device driver and an SDIO functional driver.
Additionally, as long as the struct mmc_host has a valid pointer to a
struct mmc_card, the corresponding host->bus_ops pointer stays valid and
assigned.
For these reasons, let's drop the superfluous reference counting and the
redundant validations in mmc_hw|sw_reset().
Signed-off-by: Ulf Hansson <[email protected]>
Reviewed-by: Adrian Hunter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions