[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241012141403.1558513-1-colin.i.king@gmail.com>
Date: Sat, 12 Oct 2024 15:14:03 +0100
From: Colin Ian King <colin.i.king@...il.com>
To: Hans de Goede <hdegoede@...hat.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Sakari Ailus <sakari.ailus@...ux.intel.com>,
Andy Shevchenko <andy@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-media@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: kernel-janitors@...r.kernel.org,
linux-staging@...ts.linux.dev
Subject: [PATCH] media: atomisp: remove redundant re-checking of err
The check to see if err is non-zero is always false because err has
been previously checked on whenever err has been assigned in previous
code paths. The check is redundant and can be removed.
Signed-off-by: Colin Ian King <colin.i.king@...il.com>
---
drivers/staging/media/atomisp/pci/sh_css.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/staging/media/atomisp/pci/sh_css.c b/drivers/staging/media/atomisp/pci/sh_css.c
index ca97ea082cf4..7cee4dc35427 100644
--- a/drivers/staging/media/atomisp/pci/sh_css.c
+++ b/drivers/staging/media/atomisp/pci/sh_css.c
@@ -6308,9 +6308,6 @@ load_yuvpp_binaries(struct ia_css_pipe *pipe)
}
}
- if (err)
- goto ERR;
-
ERR:
if (need_scaler)
ia_css_pipe_destroy_cas_scaler_desc(&cas_scaler_descr);
--
2.39.5
Powered by blists - more mailing lists