media: atomisp: remove redundant re-checking of err
authorColin Ian King <colin.i.king@gmail.com>
Sat, 12 Oct 2024 14:14:03 +0000 (15:14 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 7 Nov 2024 14:16:06 +0000 (15:16 +0100)
commitd85a41d8887198224e1da84febdfa61dc6e8a078
tree20541831a4aca213470f055382f23b16ead77a7f
parent08964e23783b5752da2d7be3a3f017ae917c9837
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>
drivers/staging/media/atomisp/pci/sh_css.c