diff options
author | Christoph Hellwig <hch@lst.de> | 2020-07-08 14:25:45 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-07-08 16:20:01 -0600 |
commit | 3d3a6a2088bc7ec9dcaa7bfa8db5fa83d98e6641 (patch) | |
tree | 861ad2dfb9c4e7a45552db911368dd9e7d41773c /arch/xtensa | |
parent | 13ab64880e80f8bcf541dcd95ddb3fd0dd861fb7 (diff) |
xtensa/simdisk: remove the call to check_disk_change
The simdisk driver doesn't support event notifications, which means
that check_disk_change is a no-op.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'arch/xtensa')
-rw-r--r-- | arch/xtensa/platforms/iss/simdisk.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/xtensa/platforms/iss/simdisk.c b/arch/xtensa/platforms/iss/simdisk.c index 5107140dbb7e..3447556d276d 100644 --- a/arch/xtensa/platforms/iss/simdisk.c +++ b/arch/xtensa/platforms/iss/simdisk.c @@ -127,8 +127,6 @@ static int simdisk_open(struct block_device *bdev, fmode_t mode) struct simdisk *dev = bdev->bd_disk->private_data; spin_lock(&dev->lock); - if (!dev->users) - check_disk_change(bdev); ++dev->users; spin_unlock(&dev->lock); return 0; |