media: staging: media: atomisp: balance braces around if...else block

Balance braces around the if else blocks as per the code style guidelines.
Add braces to branches where it is missing. Resolves checkpatch script
CHECK / WARNING feedback messages.

Signed-off-by: Deepak R Varma <drv@mailo.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
Deepak R Varma 2021-04-28 20:05:41 +02:00 committed by Mauro Carvalho Chehab
parent 684e025c71
commit 43692e9e1b
2 changed files with 4 additions and 4 deletions

View File

@ -658,9 +658,9 @@ static int gc2235_s_power(struct v4l2_subdev *sd, int on)
{
int ret;
if (on == 0)
if (on == 0) {
ret = power_down(sd);
else {
} else {
ret = power_up(sd);
if (!ret)
ret = __gc2235_init(sd);

View File

@ -568,9 +568,9 @@ static int power_down(struct v4l2_subdev *sd)
static int mt9m114_s_power(struct v4l2_subdev *sd, int power)
{
if (power == 0)
if (power == 0) {
return power_down(sd);
else {
} else {
if (power_up(sd))
return -EINVAL;