Commit 8126e17f authored by Haneen Mohammed's avatar Haneen Mohammed Committed by Greg Kroah-Hartman

Staging: media: Remove parentheses around right side an assignment

Parentheses are not needed around the right hand side of an assignment.
This patch remove parenthese of such occurenses. Issue was detected and
solved using the following coccinelle script:

@rule1@
identifier x, y, z;
expression E1, E2;
@@

(
x = (y == z);
|
x = (E1 == E2);
|
 x =
-(
...
-)
 ;
)
Signed-off-by: default avatarHaneen Mohammed <hamohammed.sa@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent acc4b97b
...@@ -1448,8 +1448,8 @@ static void bcm2048_parse_rds_pi(struct bcm2048_device *bdev) ...@@ -1448,8 +1448,8 @@ static void bcm2048_parse_rds_pi(struct bcm2048_device *bdev)
/* Block A match, only data without crc errors taken */ /* Block A match, only data without crc errors taken */
if (bdev->rds_info.radio_text[i] == BCM2048_RDS_BLOCK_A) { if (bdev->rds_info.radio_text[i] == BCM2048_RDS_BLOCK_A) {
pi = ((bdev->rds_info.radio_text[i+1] << 8) + pi = (bdev->rds_info.radio_text[i+1] << 8) +
bdev->rds_info.radio_text[i+2]); bdev->rds_info.radio_text[i+2];
if (!bdev->rds_info.rds_pi) { if (!bdev->rds_info.rds_pi) {
bdev->rds_info.rds_pi = pi; bdev->rds_info.rds_pi = pi;
...@@ -1503,8 +1503,8 @@ static int bcm2048_parse_rt_match_b(struct bcm2048_device *bdev, int i) ...@@ -1503,8 +1503,8 @@ static int bcm2048_parse_rt_match_b(struct bcm2048_device *bdev, int i)
if ((bdev->rds_info.radio_text[i] & BCM2048_RDS_BLOCK_MASK) == if ((bdev->rds_info.radio_text[i] & BCM2048_RDS_BLOCK_MASK) ==
BCM2048_RDS_BLOCK_B) { BCM2048_RDS_BLOCK_B) {
rt_id = (bdev->rds_info.radio_text[i+1] & rt_id = bdev->rds_info.radio_text[i+1] &
BCM2048_RDS_BLOCK_MASK); BCM2048_RDS_BLOCK_MASK;
rt_group_b = bdev->rds_info.radio_text[i+1] & rt_group_b = bdev->rds_info.radio_text[i+1] &
BCM2048_RDS_GROUP_AB_MASK; BCM2048_RDS_GROUP_AB_MASK;
rt_ab = bdev->rds_info.radio_text[i+2] & rt_ab = bdev->rds_info.radio_text[i+2] &
......
...@@ -161,8 +161,8 @@ static unsigned int init_lirc_timer(void) ...@@ -161,8 +161,8 @@ static unsigned int init_lirc_timer(void)
|| (now.tv_sec == tv.tv_sec || (now.tv_sec == tv.tv_sec
&& now.tv_usec < tv.tv_usec))); && now.tv_usec < tv.tv_usec)));
timeelapsed = ((now.tv_sec + 1 - tv.tv_sec)*1000000 timeelapsed = (now.tv_sec + 1 - tv.tv_sec)*1000000
+ (now.tv_usec - tv.tv_usec)); + (now.tv_usec - tv.tv_usec);
if (count >= 1000 && timeelapsed > 0) { if (count >= 1000 && timeelapsed > 0) {
if (default_timer == 0) { if (default_timer == 0) {
/* autodetect timer */ /* autodetect timer */
......
...@@ -838,7 +838,7 @@ static int lirc_serial_probe(struct platform_device *dev) ...@@ -838,7 +838,7 @@ static int lirc_serial_probe(struct platform_device *dev)
nhigh++; nhigh++;
msleep(40); msleep(40);
} }
sense = (nlow >= nhigh ? 1 : 0); sense = nlow >= nhigh ? 1 : 0;
dev_info(&dev->dev, "auto-detected active %s receiver\n", dev_info(&dev->dev, "auto-detected active %s receiver\n",
sense ? "low" : "high"); sense ? "low" : "high");
} else } else
......
...@@ -276,7 +276,7 @@ static int mn88472_init(struct dvb_frontend *fe) ...@@ -276,7 +276,7 @@ static int mn88472_init(struct dvb_frontend *fe)
remaining -= (dev->i2c_wr_max - 1)) { remaining -= (dev->i2c_wr_max - 1)) {
len = remaining; len = remaining;
if (len > (dev->i2c_wr_max - 1)) if (len > (dev->i2c_wr_max - 1))
len = (dev->i2c_wr_max - 1); len = dev->i2c_wr_max - 1;
ret = regmap_bulk_write(dev->regmap[0], 0xf6, ret = regmap_bulk_write(dev->regmap[0], 0xf6,
&fw->data[fw->size - remaining], len); &fw->data[fw->size - remaining], len);
......
...@@ -243,7 +243,7 @@ static int mn88473_init(struct dvb_frontend *fe) ...@@ -243,7 +243,7 @@ static int mn88473_init(struct dvb_frontend *fe)
remaining -= (dev->i2c_wr_max - 1)) { remaining -= (dev->i2c_wr_max - 1)) {
len = remaining; len = remaining;
if (len > (dev->i2c_wr_max - 1)) if (len > (dev->i2c_wr_max - 1))
len = (dev->i2c_wr_max - 1); len = dev->i2c_wr_max - 1;
ret = regmap_bulk_write(dev->regmap[0], 0xf6, ret = regmap_bulk_write(dev->regmap[0], 0xf6,
&fw->data[fw->size - remaining], len); &fw->data[fw->size - remaining], len);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment