static int video_open(struct file *file) { .... found: mutex_unlock(&TW686v_devlist_lock); .... if (dev->video_opened & request) { mutex_unlock(&TW686v_devlist_lock); ==> this look likes redundant ... }
static int video_open(struct file *file)
{
....
found:
mutex_unlock(&TW686v_devlist_lock);
....
if (dev->video_opened & request) {
mutex_unlock(&TW686v_devlist_lock); ==> this look likes redundant
...
}