lkml.org 
[lkml]   [2019]   [Mar]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] rtc: sh: fix unused variable warning
On 25/03/2019 11:24:53+0100, Anders Roxell wrote:
> When building the driver rtc/rtc-sh a warning about unused variable
> shows up:
>
> ../drivers/rtc/rtc-sh.c: In function ‘sh_rtc_probe’:
> ../drivers/rtc/rtc-sh.c:472:18: warning: unused variable ‘r’ [-Wunused-variable]
> struct rtc_time r;
> ^
>
> Remove the declaration of the unused varable 'r'.
>
> Fixes: 373f7f4bf4a5 ("rtc: sh: stop resetting time to epoch")
> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
> ---
> drivers/rtc/rtc-sh.c | 1 -
> 1 file changed, 1 deletion(-)
>

Thanks, I've squashed it in the original commit as it is not yet in any
release and its hash may still change.

--
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

\
 
 \ /
  Last update: 2019-03-25 11:48    [W:0.034 / U:0.532 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site