staging: media: tegra-video: slightly simplify cleanup on errors
authorLuca Ceresoli <luca.ceresoli@bootlin.com>
Tue, 18 Apr 2023 08:00:41 +0000 (10:00 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 25 May 2023 11:04:47 +0000 (13:04 +0200)
commit26b44232f581b2baa8a2e767b52db33a9c7e839b
treebbbe42c5028b931c705d8f1622994b88d6f0be23
parent40ecb38e5c961174f86bfb4d5b1d2ae821cc45c2
staging: media: tegra-video: slightly simplify cleanup on errors

of_node_put(node) does nothing if node == NULL, so it can be moved to the
cleanup section at the bottom.

Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/staging/media/tegra-video/vi.c