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@gmail.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://lore.kernel.org/r/20241012141403.1558513-1-colin.i.king@gmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
Colin Ian King
2024-10-12 15:14:03 +01:00
committed by Mauro Carvalho Chehab
parent 08964e2378
commit d85a41d888

View File

@@ -6299,9 +6299,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);