staging: vc04_services: bcm2835-camera: Remove unnecessary variable
Instead of storing the result, make the function return directly Signed-off-by: Narcisa Ana Maria Vasile <narcisaanamaria12@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
91b0faa50c
commit
3302603e14
1 changed files with 3 additions and 6 deletions
|
|
@ -671,7 +671,6 @@ static struct vb2_ops bm2835_mmal_video_qops = {
|
|||
static int set_overlay_params(struct bm2835_mmal_dev *dev,
|
||||
struct vchiq_mmal_port *port)
|
||||
{
|
||||
int ret;
|
||||
struct mmal_parameter_displayregion prev_config = {
|
||||
.set = MMAL_DISPLAY_SET_LAYER | MMAL_DISPLAY_SET_ALPHA |
|
||||
MMAL_DISPLAY_SET_DEST_RECT | MMAL_DISPLAY_SET_FULLSCREEN,
|
||||
|
|
@ -685,11 +684,9 @@ static int set_overlay_params(struct bm2835_mmal_dev *dev,
|
|||
.height = dev->overlay.w.height,
|
||||
},
|
||||
};
|
||||
ret = vchiq_mmal_port_parameter_set(dev->instance, port,
|
||||
MMAL_PARAMETER_DISPLAYREGION,
|
||||
&prev_config, sizeof(prev_config));
|
||||
|
||||
return ret;
|
||||
return vchiq_mmal_port_parameter_set(dev->instance, port,
|
||||
MMAL_PARAMETER_DISPLAYREGION,
|
||||
&prev_config, sizeof(prev_config));
|
||||
}
|
||||
|
||||
/* overlay ioctl */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue