media: atomisp: remove redundant NULL check
authorYang Li <abaci-bugfix@linux.alibaba.com>
Thu, 21 Jan 2021 09:11:52 +0000 (10:11 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 23 Mar 2021 07:52:51 +0000 (08:52 +0100)
commitac68fb7f124b7a23ea8ac3c7fd2eae00330d031f
tree3f30eb4bbcc0ab955a5a63731b1f1f2b3237fdd7
parent58fba0b16cb31114cd78104ed1f8b0a3d6c7790a
media: atomisp: remove redundant NULL check

Fix below warnings reported by coccicheck:
./drivers/staging/media/atomisp/pci/atomisp_cmd.c:4269:2-8: WARNING:
NULL check before some freeing functions is not needed.
./drivers/staging/media/atomisp/pci/atomisp_cmd.c:4626:2-8: WARNING:
NULL check before some freeing functions is not needed.

Link: https://lore.kernel.org/linux-media/1611220312-89384-3-git-send-email-abaci-bugfix@linux.alibaba.com
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <abaci-bugfix@linux.alibaba.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_cmd.c