media: atomisp: Simplify some if (IS_ISP2401...) statements
authorHans de Goede <hdegoede@redhat.com>
Sat, 12 Aug 2023 10:46:12 +0000 (12:46 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Wed, 27 Sep 2023 07:40:04 +0000 (09:40 +0200)
commit42c26b4cd1f725653476c5423d260609b6446fea
tree7493d29937687cda780689bc69e95d33fcf173a9
parent65214188ca1dbaa390edbae20ae31d210da7c46b
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>
drivers/staging/media/atomisp/pci/sh_css.c