mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-30 22:50:54 -04:00
media: staging: media: atomisp: remove unnecessary braces
According to the coding style guidelines, if...else blocks with single instructions do not need enclosing braces. This resolves checkpatch WARNING / CHECK complaints. 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:
committed by
Mauro Carvalho Chehab
parent
43692e9e1b
commit
21837c2c27
@@ -461,11 +461,11 @@ static int ov2680_v_flip(struct v4l2_subdev *sd, s32 value)
|
||||
ret = ov2680_read_reg(client, 1, OV2680_FLIP_REG, &val);
|
||||
if (ret)
|
||||
return ret;
|
||||
if (value) {
|
||||
if (value)
|
||||
val |= OV2680_FLIP_MIRROR_BIT_ENABLE;
|
||||
} else {
|
||||
else
|
||||
val &= ~OV2680_FLIP_MIRROR_BIT_ENABLE;
|
||||
}
|
||||
|
||||
ret = ov2680_write_reg(client, 1,
|
||||
OV2680_FLIP_REG, val);
|
||||
if (ret)
|
||||
|
||||
Reference in New Issue
Block a user