diff options
author | Alex Dubov <oakad@yahoo.com> | 2011-01-12 20:01:04 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-13 11:03:22 -0500 |
commit | edb50b3b1d9bf6d51dc68f7f885e78285f8d6f18 (patch) | |
tree | b57c537a5149a3fb2b1128d605f2b9f2e0b3fa08 /drivers | |
parent | d8256d487840f9c2c372f8fc615a5d378bc133f1 (diff) |
memstick: remove mspro_block_mutex
mspro_block_mutex is identical in scope to mspro_block_disk_lock and therefore
unnecessary.
Signed-off-by: Alex Dubov <oakad@yahoo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/memstick/core/mspro_block.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/memstick/core/mspro_block.c b/drivers/memstick/core/mspro_block.c index a167938d4517..b11b2b89ae22 100644 --- a/drivers/memstick/core/mspro_block.c +++ b/drivers/memstick/core/mspro_block.c | |||
@@ -23,7 +23,6 @@ | |||
23 | 23 | ||
24 | #define DRIVER_NAME "mspro_block" | 24 | #define DRIVER_NAME "mspro_block" |
25 | 25 | ||
26 | static DEFINE_MUTEX(mspro_block_mutex); | ||
27 | static int major; | 26 | static int major; |
28 | module_param(major, int, 0644); | 27 | module_param(major, int, 0644); |
29 | 28 | ||
@@ -181,7 +180,6 @@ static int mspro_block_bd_open(struct block_device *bdev, fmode_t mode) | |||
181 | struct mspro_block_data *msb = disk->private_data; | 180 | struct mspro_block_data *msb = disk->private_data; |
182 | int rc = -ENXIO; | 181 | int rc = -ENXIO; |
183 | 182 | ||
184 | mutex_lock(&mspro_block_mutex); | ||
185 | mutex_lock(&mspro_block_disk_lock); | 183 | mutex_lock(&mspro_block_disk_lock); |
186 | 184 | ||
187 | if (msb && msb->card) { | 185 | if (msb && msb->card) { |
@@ -193,7 +191,6 @@ static int mspro_block_bd_open(struct block_device *bdev, fmode_t mode) | |||
193 | } | 191 | } |
194 | 192 | ||
195 | mutex_unlock(&mspro_block_disk_lock); | 193 | mutex_unlock(&mspro_block_disk_lock); |
196 | mutex_unlock(&mspro_block_mutex); | ||
197 | 194 | ||
198 | return rc; | 195 | return rc; |
199 | } | 196 | } |
@@ -225,11 +222,7 @@ static int mspro_block_disk_release(struct gendisk *disk) | |||
225 | 222 | ||
226 | static int mspro_block_bd_release(struct gendisk *disk, fmode_t mode) | 223 | static int mspro_block_bd_release(struct gendisk *disk, fmode_t mode) |
227 | { | 224 | { |
228 | int ret; | 225 | return mspro_block_disk_release(disk); |
229 | mutex_lock(&mspro_block_mutex); | ||
230 | ret = mspro_block_disk_release(disk); | ||
231 | mutex_unlock(&mspro_block_mutex); | ||
232 | return ret; | ||
233 | } | 226 | } |
234 | 227 | ||
235 | static int mspro_block_bd_getgeo(struct block_device *bdev, | 228 | static int mspro_block_bd_getgeo(struct block_device *bdev, |