diff options
author | Dafna Hirschfeld <dafna.hirschfeld@collabora.com> | 2019-10-07 10:50:00 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-10-24 19:00:14 -0300 |
commit | 4996992c4f7410e9a43aa3047e8034756cece21a (patch) | |
tree | b23b4fb3657ca9bf3a7c18f83d77ed463c8022ce /drivers/media/platform/vimc/vimc-sensor.c | |
parent | 817d0b3278f52d4d20b9706e41c808287ee909e4 (diff) |
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>
Diffstat (limited to 'drivers/media/platform/vimc/vimc-sensor.c')
0 files changed, 0 insertions, 0 deletions