aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2023-08-12 12:46:12 +0200
committerMauro Carvalho Chehab <mchehab@kernel.org>2023-09-27 09:40:04 +0200
commit42c26b4cd1f725653476c5423d260609b6446fea (patch)
tree7493d29937687cda780689bc69e95d33fcf173a9
parentmedia: atomisp: atomisp_v4l2: Removed unnecessary code (diff)
downloadwireguard-linux-42c26b4cd1f725653476c5423d260609b6446fea.tar.xz
wireguard-linux-42c26b4cd1f725653476c5423d260609b6446fea.zip
media: atomisp: Simplify some if (IS_ISP2401...) statements
Replace: if (!IS_ISP2401 || (IS_ISP2401 && xxx)) with: if (!IS_ISP2401 || xxx) If the right side of the '||' needs to be evaluated then it is already known that IS_ISP2401 is true, so no need to check for it. Link: https://lore.kernel.org/r/20230812104612.38806-1-hdegoede@redhat.com Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
-rw-r--r--drivers/staging/media/atomisp/pci/sh_css.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/media/atomisp/pci/sh_css.c b/drivers/staging/media/atomisp/pci/sh_css.c
index 81f18db7316c..f35c90809414 100644
--- a/drivers/staging/media/atomisp/pci/sh_css.c
+++ b/drivers/staging/media/atomisp/pci/sh_css.c
@@ -7351,7 +7351,7 @@ static int capture_start(struct ia_css_pipe *pipe)
}
}
/* old isys: need to send_mipi_frames() in all pipe modes */
- if (!IS_ISP2401 || (IS_ISP2401 && pipe->config.mode != IA_CSS_PIPE_MODE_COPY)) {
+ if (!IS_ISP2401 || pipe->config.mode != IA_CSS_PIPE_MODE_COPY) {
err = send_mipi_frames(pipe);
if (err) {
IA_CSS_LEAVE_ERR_PRIVATE(err);
@@ -8077,7 +8077,7 @@ ia_css_stream_create(const struct ia_css_stream_config *stream_config,
/* check if mipi size specified */
if (stream_config->mode == IA_CSS_INPUT_MODE_BUFFERED_SENSOR)
- if (!IS_ISP2401 || (IS_ISP2401 && !stream_config->online))
+ if (!IS_ISP2401 || !stream_config->online)
{
unsigned int port = (unsigned int)stream_config->source.port.port;