From: Christoph Hellwig Date: Wed, 8 Jul 2020 12:25:46 +0000 (+0200) Subject: mmc: remove the call to check_disk_change X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9eb994ec54be320b51fba48d1e52a046cbb742a5;p=linux.git mmc: remove the call to check_disk_change The mmc driver doesn't support event notifications, which means that check_disk_change is a no-op. Signed-off-by: Christoph Hellwig Signed-off-by: Jens Axboe --- diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c index 4791c82f8f7c7..fa313b6341354 100644 --- a/drivers/mmc/core/block.c +++ b/drivers/mmc/core/block.c @@ -312,10 +312,7 @@ static int mmc_blk_open(struct block_device *bdev, fmode_t mode) mutex_lock(&block_mutex); if (md) { - if (md->usage == 2) - check_disk_change(bdev); ret = 0; - if ((mode & FMODE_WRITE) && md->read_only) { mmc_blk_put(md); ret = -EROFS;