[PATCH 1/6] drivers: rtc: pcf8536: Remove redundant variable

Sascha Hauer sha at pengutronix.de
Wed Jun 29 00:33:04 PDT 2022


On Wed, Jun 29, 2022 at 09:30:19AM +0300, Alexander Shiyan wrote:
> Signed-off-by: Alexander Shiyan <eagle.alexander923 at gmail.com>
> ---
>  drivers/rtc/rtc-pcf85363.c | 5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)

Applied, thanks

Sascha

> 
> diff --git a/drivers/rtc/rtc-pcf85363.c b/drivers/rtc/rtc-pcf85363.c
> index 7b785d6a77..b9f0fc6012 100644
> --- a/drivers/rtc/rtc-pcf85363.c
> +++ b/drivers/rtc/rtc-pcf85363.c
> @@ -131,7 +131,6 @@ static int pcf85363_probe(struct device_d *dev)
>  	struct i2c_client *client = to_i2c_client(dev);
>  	struct pcf85363 *pcf85363;
>  	struct regmap *regmap;
> -	int ret;
>  
>  	regmap = regmap_init_i2c(client,
>  				&pcf85363_regmap_i2c_config);
> @@ -147,9 +146,7 @@ static int pcf85363_probe(struct device_d *dev)
>  	pcf85363->rtc.ops = &rtc_ops;
>  	pcf85363->rtc.dev = dev;
>  
> -	ret = rtc_register(&pcf85363->rtc);
> -
> -	return ret;
> +	return rtc_register(&pcf85363->rtc);
>  }
>  
>  static struct platform_device_id dev_ids[] = {
> -- 
> 2.32.0
> 
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list