mmc: core: Remove unnecessary error checks and change return type
authorYeqi Fu <asuk4.q@gmail.com>
Thu, 18 May 2023 10:12:16 +0000 (18:12 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 12 Jun 2023 13:16:19 +0000 (15:16 +0200)
commit584f5488e4845522f526e467138526f0155e9ab6
tree2266a1aa401a69c02366d7105a10526441b6cc57
parent434587df9f7fd68575f99a889cc5f2efc2eaee5e
mmc: core: Remove unnecessary error checks and change return type

The error checks in mmc_blk_add_debugfs() and mmc_blk_remove_debugfs()
are extraneous. Therefore, this patch removes all error checks from
both functions.
Additionally, mmc_blk_add_debugfs() has been changed to return void
instead of an integer value that was never used. This simplifies the
function and improves its clarity.

Signed-off-by: Yeqi Fu <asuk4.q@gmail.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20230518101216.369970-1-asuk4.q@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/block.c