]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7dcac3cad98b4aa88f60318960bd98d24504026f
tree80a8072bf6918edbe59d91a3cafb780eac2bfda2
parent3da23090d6434e60d5e74f4f856de15d430bbcc7
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