summaryrefslogtreecommitdiff
path: root/drivers/staging/media/atomisp/i2c/ov8858.c
diff options
context:
space:
mode:
authorVarsha Rao <rvarsha016@gmail.com>2017-03-04 22:34:02 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-06 11:17:41 +0100
commit6c492211fbbb4085ebf7a8d62a9424ce2423794f (patch)
tree5c1b534764825598f8f41af716a918d402fb6a57 /drivers/staging/media/atomisp/i2c/ov8858.c
parentd89f191e0c8127813b39324440b0a82ba7a84ed8 (diff)
staging: media: atomisp: Removed unnecessary parentheses.
Removed parentheses on the right hand side of assignment, as they are not required. The following coccinelle script is used to fix this issue: @@ binary operator op = {<<,>>,+,/}; local idexpression id; expression e1, e2; @@ id = -( e1 op e2 -) Signed-off-by: Varsha Rao <rvarsha016@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/media/atomisp/i2c/ov8858.c')
-rw-r--r--drivers/staging/media/atomisp/i2c/ov8858.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/media/atomisp/i2c/ov8858.c b/drivers/staging/media/atomisp/i2c/ov8858.c
index 8409f0d5f7bf..f2184946f892 100644
--- a/drivers/staging/media/atomisp/i2c/ov8858.c
+++ b/drivers/staging/media/atomisp/i2c/ov8858.c
@@ -1250,7 +1250,7 @@ static int distance(struct ov8858_resolution const *res, const u32 w,
res->width < w || res->height < h)
return -1;
- ratio = (res->width << 13);
+ ratio = res->width << 13;
ratio /= w;
ratio *= h;
ratio /= res->height;