Commit 3fd8ab30 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

V4L/DVB (11256): dabusb: fix compile warning.

Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent ce18c485
...@@ -675,7 +675,6 @@ static int dabusb_release (struct inode *inode, struct file *file) ...@@ -675,7 +675,6 @@ static int dabusb_release (struct inode *inode, struct file *file)
static long dabusb_ioctl (struct file *file, unsigned int cmd, unsigned long arg) static long dabusb_ioctl (struct file *file, unsigned int cmd, unsigned long arg)
{ {
lock_kernel();
pdabusb_t s = (pdabusb_t) file->private_data; pdabusb_t s = (pdabusb_t) file->private_data;
pbulk_transfer_t pbulk; pbulk_transfer_t pbulk;
int ret = 0; int ret = 0;
...@@ -683,6 +682,7 @@ static long dabusb_ioctl (struct file *file, unsigned int cmd, unsigned long arg ...@@ -683,6 +682,7 @@ static long dabusb_ioctl (struct file *file, unsigned int cmd, unsigned long arg
dbg("dabusb_ioctl"); dbg("dabusb_ioctl");
lock_kernel();
if (s->remove_pending) { if (s->remove_pending) {
unlock_kernel(); unlock_kernel();
return -EIO; return -EIO;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment