On 03/10/14 02:25, Fabio Estevam wrote: > From: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx> > > There is no need to pass the error clock code to the variable 'ret'. > > Just return the error directly. > > Signed-off-by: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx> Applied to the togreg branch of iio.git. Thanks, > --- > drivers/iio/adc/vf610_adc.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/iio/adc/vf610_adc.c b/drivers/iio/adc/vf610_adc.c > index c259901..a9c41ec 100644 > --- a/drivers/iio/adc/vf610_adc.c > +++ b/drivers/iio/adc/vf610_adc.c > @@ -586,8 +586,7 @@ static int vf610_adc_probe(struct platform_device *pdev) > if (IS_ERR(info->clk)) { > dev_err(&pdev->dev, "failed getting clock, err = %ld\n", > PTR_ERR(info->clk)); > - ret = PTR_ERR(info->clk); > - return ret; > + return PTR_ERR(info->clk); > } > > info->vref = devm_regulator_get(&pdev->dev, "vref"); > -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html