Skip to contentSkip to conversation

Staging: media: atomisp: i2c: atomisp-ov2680: fixed a coding style

PATCH New Santha Meena Ramamoorthy 1 participant 1 message Feb 6, 2018

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: media: atomisp: i2c: atomisp-ov2680: fixed a coding style

Fixed the following checkpatch warning
WARNING: braces {} are not necessary for any arm of this statement

---
 drivers/staging/media/atomisp/i2c/atomisp-ov2680.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/media/atomisp/i2c/atomisp-ov2680.c +3 -3
index cd67d38..65006c8 100644
@@ -642,11 +642,11 @@ static int ov2680_h_flip(struct v4l2_subdev *sd, s32 value)
 	ret = ov2680_read_reg(client, OV2680_8BIT, OV2680_MIRROR_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, OV2680_8BIT,
 			OV2680_MIRROR_REG, val);
 	if (ret)
Signature · 6 lines
2.7.4

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel