summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-08-31 19:32:13 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-09-05 16:29:36 +0300
commit7d200e88cbdff5334d23d3af8d444eb9cc041962 (patch)
treedc94787f0ef76d52049ff25d77aae83ef75a52aa /drivers/mtd
parent24342c34a022ee90839873d91396045e12ef1090 (diff)
downloadlinux-stable-7d200e88cbdff5334d23d3af8d444eb9cc041962.tar.gz
linux-stable-7d200e88cbdff5334d23d3af8d444eb9cc041962.tar.bz2
linux-stable-7d200e88cbdff5334d23d3af8d444eb9cc041962.zip
UBI: remove BKL
We do not need BKL in UBI because we serialize things properly. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/ubi/cdev.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/mtd/ubi/cdev.c b/drivers/mtd/ubi/cdev.c
index 03c759b4eeb5..b30a0b83d7f1 100644
--- a/drivers/mtd/ubi/cdev.c
+++ b/drivers/mtd/ubi/cdev.c
@@ -104,12 +104,9 @@ static int vol_cdev_open(struct inode *inode, struct file *file)
struct ubi_volume_desc *desc;
int vol_id = iminor(inode) - 1, mode, ubi_num;
- lock_kernel();
ubi_num = ubi_major2num(imajor(inode));
- if (ubi_num < 0) {
- unlock_kernel();
+ if (ubi_num < 0)
return ubi_num;
- }
if (file->f_mode & FMODE_WRITE)
mode = UBI_READWRITE;
@@ -119,7 +116,6 @@ static int vol_cdev_open(struct inode *inode, struct file *file)
dbg_gen("open volume %d, mode %d", vol_id, mode);
desc = ubi_open_volume(ubi_num, vol_id, mode);
- unlock_kernel();
if (IS_ERR(desc))
return PTR_ERR(desc);