Staging: vc04_services: Cleanup in ctrl_set_bitrate()
Remove unnecessary variable from the function and make a corresponding change w.r.t the variable. In addition to that align the parameters in the parentheses to maintain Linux kernel coding style Issue suggested by Coccinelle. Signed-off-by: Madhumitha Prabakaran <madhumithabiw@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
06e8c289a2
commit
52c4dfcead
@@ -607,18 +607,15 @@ static int ctrl_set_bitrate(struct bm2835_mmal_dev *dev,
|
|||||||
struct v4l2_ctrl *ctrl,
|
struct v4l2_ctrl *ctrl,
|
||||||
const struct bm2835_mmal_v4l2_ctrl *mmal_ctrl)
|
const struct bm2835_mmal_v4l2_ctrl *mmal_ctrl)
|
||||||
{
|
{
|
||||||
int ret;
|
|
||||||
struct vchiq_mmal_port *encoder_out;
|
struct vchiq_mmal_port *encoder_out;
|
||||||
|
|
||||||
dev->capture.encode_bitrate = ctrl->val;
|
dev->capture.encode_bitrate = ctrl->val;
|
||||||
|
|
||||||
encoder_out = &dev->component[MMAL_COMPONENT_VIDEO_ENCODE]->output[0];
|
encoder_out = &dev->component[MMAL_COMPONENT_VIDEO_ENCODE]->output[0];
|
||||||
|
|
||||||
ret = vchiq_mmal_port_parameter_set(dev->instance, encoder_out,
|
return vchiq_mmal_port_parameter_set(dev->instance, encoder_out,
|
||||||
mmal_ctrl->mmal_id,
|
mmal_ctrl->mmal_id, &ctrl->val,
|
||||||
&ctrl->val, sizeof(ctrl->val));
|
sizeof(ctrl->val));
|
||||||
ret = 0;
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ctrl_set_bitrate_mode(struct bm2835_mmal_dev *dev,
|
static int ctrl_set_bitrate_mode(struct bm2835_mmal_dev *dev,
|
||||||
|
Reference in New Issue
Block a user