Commit 33cc62fa authored by Dave Stevenson's avatar Dave Stevenson Committed by Greg Kroah-Hartman

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

Clear checkpatch complaints of "multiple assignments should be avoided"
Signed-off-by: default avatarDave Stevenson <dave.stevenson@raspberrypi.org>
Signed-off-by: default avatarStefan Wahren <wahrenst@gmx.net>
Acked-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Acked-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c7b52b80
...@@ -1035,11 +1035,12 @@ static int mmal_setup_components(struct bm2835_mmal_dev *dev, ...@@ -1035,11 +1035,12 @@ static int mmal_setup_components(struct bm2835_mmal_dev *dev,
/* Make a further decision on port based on resolution */ /* Make a further decision on port based on resolution */
if (f->fmt.pix.width <= max_video_width && if (f->fmt.pix.width <= max_video_width &&
f->fmt.pix.height <= max_video_height) f->fmt.pix.height <= max_video_height)
camera_port = port = camera_port =
&dev->component[COMP_CAMERA]->output[CAM_PORT_VIDEO]; &dev->component[COMP_CAMERA]->output[CAM_PORT_VIDEO];
else else
camera_port = port = camera_port =
&dev->component[COMP_CAMERA]->output[CAM_PORT_CAPTURE]; &dev->component[COMP_CAMERA]->output[CAM_PORT_CAPTURE];
port = camera_port;
break; break;
case COMP_IMAGE_ENCODE: case COMP_IMAGE_ENCODE:
encode_component = dev->component[COMP_IMAGE_ENCODE]; encode_component = dev->component[COMP_IMAGE_ENCODE];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment