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:
parent
684e025c71
commit
43692e9e1b
@ -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);
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user