1
0
Fork 0

staging: bcm2835-camera: Fix multiple assignments should be avoided

Clear checkpatch complaints of "multiple assignments should be avoided"

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Acked-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Acked-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
alistair/sunxi64-5.4-dsi
Dave Stevenson 2019-06-29 14:48:27 +02:00 committed by Greg Kroah-Hartman
parent c7b52b8035
commit 33cc62fafc
1 changed files with 3 additions and 2 deletions

View File

@ -1035,11 +1035,12 @@ static int mmal_setup_components(struct bm2835_mmal_dev *dev,
/* Make a further decision on port based on resolution */
if (f->fmt.pix.width <= max_video_width &&
f->fmt.pix.height <= max_video_height)
camera_port = port =
camera_port =
&dev->component[COMP_CAMERA]->output[CAM_PORT_VIDEO];
else
camera_port = port =
camera_port =
&dev->component[COMP_CAMERA]->output[CAM_PORT_CAPTURE];
port = camera_port;
break;
case COMP_IMAGE_ENCODE:
encode_component = dev->component[COMP_IMAGE_ENCODE];