diff options
author | Peter Senna Tschudin <peter.senna@gmail.com> | 2012-09-28 04:37:22 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-10-07 08:15:18 -0400 |
commit | c2c1b4156a447f113ef4d167decce29399c2667c (patch) | |
tree | 910e86eb8b64ada851d1c07d99f7885886be1dc2 /drivers/media/dvb-frontends/af9013.c | |
parent | 54fd321e131587b008c47289e4066ac65935cfb5 (diff) |
[media] drivers/media: Remove unnecessary semicolon
A simplified version of the semantic patch that finds this problem is as
follows: (http://coccinelle.lip6.fr/)
// <smpl>
@r1@
statement S;
position p,p1;
@@
S@p1;@p
@script:python r2@
p << r1.p;
p1 << r1.p1;
@@
if p[0].line != p1[0].line_end:
cocci.include_match(False)
@@
position r1.p;
@@
-;@p
// </smpl>
[mchehab@redhat.com: some hunks got bitroted; applied only the
ones that succeeds]
Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
[crope@iki.fi: For my drivers a8293, af9013, af9015, af9035]
Acked-by: Antti Palosaari <crope@iki.fi>
Reviewed-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb-frontends/af9013.c')
-rw-r--r-- | drivers/media/dvb-frontends/af9013.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/dvb-frontends/af9013.c b/drivers/media/dvb-frontends/af9013.c index e9f04a36577b..a204f2828820 100644 --- a/drivers/media/dvb-frontends/af9013.c +++ b/drivers/media/dvb-frontends/af9013.c | |||
@@ -241,7 +241,7 @@ static int af9013_set_gpio(struct af9013_state *state, u8 gpio, u8 gpioval) | |||
241 | KBUILD_MODNAME, gpio); | 241 | KBUILD_MODNAME, gpio); |
242 | ret = -EINVAL; | 242 | ret = -EINVAL; |
243 | goto err; | 243 | goto err; |
244 | }; | 244 | } |
245 | 245 | ||
246 | switch (gpio) { | 246 | switch (gpio) { |
247 | case 0: | 247 | case 0: |
@@ -253,7 +253,7 @@ static int af9013_set_gpio(struct af9013_state *state, u8 gpio, u8 gpioval) | |||
253 | default: | 253 | default: |
254 | pos = 4; | 254 | pos = 4; |
255 | break; | 255 | break; |
256 | }; | 256 | } |
257 | 257 | ||
258 | ret = af9013_wr_reg_bits(state, addr, pos, 4, gpioval); | 258 | ret = af9013_wr_reg_bits(state, addr, pos, 4, gpioval); |
259 | if (ret) | 259 | if (ret) |
@@ -726,7 +726,7 @@ static int af9013_set_frontend(struct dvb_frontend *fe) | |||
726 | default: | 726 | default: |
727 | dev_dbg(&state->i2c->dev, "%s: invalid hierarchy\n", __func__); | 727 | dev_dbg(&state->i2c->dev, "%s: invalid hierarchy\n", __func__); |
728 | auto_mode = 1; | 728 | auto_mode = 1; |
729 | }; | 729 | } |
730 | 730 | ||
731 | switch (c->modulation) { | 731 | switch (c->modulation) { |
732 | case QAM_AUTO: | 732 | case QAM_AUTO: |