media: atomisp: fix "variable dereferenced before check 'asd'"
commit ac56760a upstream. There are two occurrences where the variable 'asd' is dereferenced before check. Fix this issue by using the variable after the check. Link: https://lore.kernel.org/linux-media/20211122074122.GA6581@kili/ Link: https://lore.kernel.org/linux-media/20211201141904.47231-1-kitakar@gmail.com Reported-by:Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by:
Tsuchiya Yuto <kitakar@gmail.com> Signed-off-by:
Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Igned-off-by:
Anastasia Belova <abelova@astralinux.ru> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Loading