Staging: intel_sst: cleanup naming a little
&sst_drv_ctx->streams[str_id].lock and &stream->lock are the same. The mutex_lock() uses &stream->lock so this makes things consistent and it's nicer to read as well. Signed-off-by: Dan Carpenter <error27@gmail.com> Acked-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
1055cc99bd
commit
81a2fff67a
|
@ -1056,20 +1056,18 @@ long intel_sst_ioctl(struct file *file_ptr, unsigned int cmd, unsigned long arg)
|
||||||
retval = sst_capture_frame(str_id);
|
retval = sst_capture_frame(str_id);
|
||||||
else {
|
else {
|
||||||
retval = -EINVAL;
|
retval = -EINVAL;
|
||||||
mutex_unlock(
|
mutex_unlock(&stream->lock);
|
||||||
&sst_drv_ctx->streams[str_id].lock);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (retval < 0) {
|
if (retval < 0) {
|
||||||
stream->status = STREAM_INIT;
|
stream->status = STREAM_INIT;
|
||||||
mutex_unlock(
|
mutex_unlock(&stream->lock);
|
||||||
&sst_drv_ctx->streams[str_id].lock);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
retval = -EINVAL;
|
retval = -EINVAL;
|
||||||
}
|
}
|
||||||
mutex_unlock(&sst_drv_ctx->streams[str_id].lock);
|
mutex_unlock(&stream->lock);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue