[media] tuners: Refactoring for m88rs6000t_sleep()
This issue was detected by using the Coccinelle software. 1. Let us return directly if a call of the regmap_write() function failed. 2. Delete the jump label "err" then. 3. Return zero as a constant at the end. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
c2e5c951c2
commit
2050d14c6e
1 changed files with 5 additions and 6 deletions
|
@ -461,13 +461,12 @@ static int m88rs6000t_sleep(struct dvb_frontend *fe)
|
|||
dev_dbg(&dev->client->dev, "%s:\n", __func__);
|
||||
|
||||
ret = regmap_write(dev->regmap, 0x07, 0x6d);
|
||||
if (ret)
|
||||
goto err;
|
||||
usleep_range(5000, 10000);
|
||||
err:
|
||||
if (ret)
|
||||
if (ret) {
|
||||
dev_dbg(&dev->client->dev, "failed=%d\n", ret);
|
||||
return ret;
|
||||
return ret;
|
||||
}
|
||||
usleep_range(5000, 10000);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int m88rs6000t_get_frequency(struct dvb_frontend *fe, u32 *frequency)
|
||||
|
|
Loading…
Reference in a new issue