]> git.baikalelectronics.ru Git - kernel.git/commit
media: vimc: cleanup code that assigns entity in entities array
authorDafna Hirschfeld <dafna.hirschfeld@collabora.com>
Mon, 7 Oct 2019 13:50:00 +0000 (10:50 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 24 Oct 2019 22:00:14 +0000 (19:00 -0300)
commite19e52a010c8a67d8c1eba57a86232f54bdd6fd3
treeb23b4fb3657ca9bf3a7c18f83d77ed463c8022ce
parent95811c8f9e8004df5c6dc08e0cdfec5ea76ad06f
media: vimc: cleanup code that assigns entity in entities array

Since the add callback returns NULL on failure and the array
is initialized to NULLs, there is no need for the intermediate
assignment to local var.

Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Acked-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vimc/vimc-core.c