drm/bridge: samsung-dsim: check the return value only if necessary
authorDario Binacchi <dario.binacchi@amarulasolutions.com>
Thu, 7 Dec 2023 16:10:43 +0000 (17:10 +0100)
committerRobert Foss <rfoss@kernel.org>
Fri, 15 Dec 2023 14:08:58 +0000 (15:08 +0100)
commit045159f5018eee5fd2b502dbbfdc31985ac8f516
tree0cc791a6b1ba5fd81b654ee139938078fbe58d4b
parent9203f67272531ee17d58966e51f086e9a5deb840
drm/bridge: samsung-dsim: check the return value only if necessary

It was useless to check again the "ret" variable if the function
register_host() was not called.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20231207161056.183442-1-dario.binacchi@amarulasolutions.com
drivers/gpu/drm/bridge/samsung-dsim.c