media: atomisp: Remove asd == NULL checks from ioctl handling
authorHans de Goede <hdegoede@redhat.com>
Sat, 3 Sep 2022 10:41:15 +0000 (12:41 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 24 Sep 2022 08:05:57 +0000 (10:05 +0200)
commit0d51573df3e0d944a644dbe90cdb06afefe77cc4
tree80a8072bf6918edbe59d91a3cafb780eac2bfda2
parent2468083f799eb9eef7b03f48ebb9673ad5655f88
media: atomisp: Remove asd == NULL checks from ioctl handling

At probe time isp_subdev_init_entities() sets pipe->asd to a non NULL
value for all four (preview/vf/capture/capture_video) pipes by calling
atomisp_init_subdev_pipe() for all 4 pipes.

So it can never be NULL. Remove the redundant NULL checks.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_cmd.c
drivers/staging/media/atomisp/pci/atomisp_ioctl.c