media: staging: atomisp: Removed else branch in function
authorLeonid Kushnir <leonf008@gmail.com>
Tue, 6 Oct 2020 08:17:21 +0000 (10:17 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 22 Mar 2021 16:40:38 +0000 (17:40 +0100)
commit4658e1dbc358b754fac3268aa903d268e41b35df
tree8e0dce24399786704a3df9e46f5731ffc1eaad4e
parent3a7c578f391839d60d32d08a31af04e6cc489564
media: staging: atomisp: Removed else branch in function

This patch fixes the checkpatch.pl warning :

WARNING: else is not generally useful after a break or return

Expressions under 'else' branch in function 'gc0310_s_power' are
executed whenever the exppression in 'if' is False. Otherwise, return
from function occurs. Therefore, there is no need in 'else', and it has
been removed.

Link: https://lore.kernel.org/linux-media/20201006081721.GA35979@linux
Signed-off-by: Leonid Kushnir <leonf008@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/i2c/atomisp-gc0310.c