mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 00:51:28 +07:00
staging: vc04_services: bcm2835-camera: Fix logical continuations warnings
Break up lines after boolean operator Signed-off-by: Daniela Mormocea <daniela.mormocea@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d33fe112c9
commit
b2c4f4660b
@ -512,8 +512,8 @@ static int start_streaming(struct vb2_queue *vq, unsigned int count)
|
||||
msleep(300);
|
||||
|
||||
/* enable the connection from camera to encoder (if applicable) */
|
||||
if (dev->capture.camera_port != dev->capture.port
|
||||
&& dev->capture.camera_port) {
|
||||
if (dev->capture.camera_port != dev->capture.port &&
|
||||
dev->capture.camera_port) {
|
||||
ret = vchiq_mmal_port_enable(dev->instance,
|
||||
dev->capture.camera_port, NULL);
|
||||
if (ret) {
|
||||
@ -1009,8 +1009,8 @@ static int mmal_setup_components(struct bm2835_mmal_dev *dev,
|
||||
switch (mfmt->mmal_component) {
|
||||
case MMAL_COMPONENT_CAMERA:
|
||||
/* Make a further decision on port based on resolution */
|
||||
if (f->fmt.pix.width <= max_video_width
|
||||
&& f->fmt.pix.height <= max_video_height)
|
||||
if (f->fmt.pix.width <= max_video_width &&
|
||||
f->fmt.pix.height <= max_video_height)
|
||||
camera_port = port =
|
||||
&dev->component[MMAL_COMPONENT_CAMERA]->output[MMAL_CAMERA_PORT_VIDEO];
|
||||
else
|
||||
@ -1067,8 +1067,8 @@ static int mmal_setup_components(struct bm2835_mmal_dev *dev,
|
||||
|
||||
ret = vchiq_mmal_port_set_format(dev->instance, camera_port);
|
||||
|
||||
if (!ret
|
||||
&& camera_port ==
|
||||
if (!ret &&
|
||||
camera_port ==
|
||||
&dev->component[MMAL_COMPONENT_CAMERA]->output[MMAL_CAMERA_PORT_VIDEO]) {
|
||||
bool overlay_enabled =
|
||||
!!dev->component[MMAL_COMPONENT_PREVIEW]->enabled;
|
||||
|
Loading…
Reference in New Issue
Block a user