Loading drivers/media/video/em28xx/em28xx-video.c +4 −7 Original line number Diff line number Diff line Loading @@ -790,15 +790,12 @@ static int res_get(struct em28xx_fh *fh) if (fh->stream_on) return rc; mutex_lock(&dev->lock); if (dev->stream_on) rc = -EINVAL; else { return -EINVAL; mutex_lock(&dev->lock); dev->stream_on = 1; fh->stream_on = 1; } mutex_unlock(&dev->lock); return rc; } Loading Loading
drivers/media/video/em28xx/em28xx-video.c +4 −7 Original line number Diff line number Diff line Loading @@ -790,15 +790,12 @@ static int res_get(struct em28xx_fh *fh) if (fh->stream_on) return rc; mutex_lock(&dev->lock); if (dev->stream_on) rc = -EINVAL; else { return -EINVAL; mutex_lock(&dev->lock); dev->stream_on = 1; fh->stream_on = 1; } mutex_unlock(&dev->lock); return rc; } Loading