Re: [PATCH] rtc: ds1307: fix compile warning if RTC_DRV_DS1307_CENTURY isn't defined

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/07/2017 at 22:03:12 +0200, Heiner Kallweit wrote:
> Fix the following warning if RTC_DRV_DS1307_CENTURY isn't defined.
> 
> drivers/rtc/rtc-ds1307.c: In function 'ds1307_get_time':
> drivers/rtc/rtc-ds1307.c:342:26: warning: unused variable 'chip' [-Wunused-variable]
>   const struct chip_desc *chip = &chips[ds1307->type];
>                           ^
> Fixes: 436c93db60a4 ("rtc: ds1307: factor out century bit handling")
> Reported-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
> Signed-off-by: Heiner Kallweit <hkallweit1@xxxxxxxxx>
> ---
>  drivers/rtc/rtc-ds1307.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 

I've squashed it in the original commit, thanks.


-- 
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com



[Index of Archives]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux