media: atomisp: Remove bogus asd == NULL checks
authorHans de Goede <hdegoede@redhat.com>
Mon, 19 Jun 2023 10:52:07 +0000 (12:52 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 10 Aug 2023 05:58:32 +0000 (07:58 +0200)
commita2c77032465711e4ee34dbeb5491938aedccffdb
treed569a915ab2e21548ce9b083319420c40c7048e7
parentf33cb49081da0ec5af0888f8ecbd566bd326eed1
media: atomisp: Remove bogus asd == NULL checks

The asd is a sub-structure of the main driver data struct, so it is
never NULL. Drop the unnecessary NULL checks in a couple of places.

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/linux-media/533f6930-434a-45f3-afff-127003fa64c9@moroto.mountain/
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/staging/media/atomisp/pci/atomisp_cmd.c
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c