lkml.org 
[lkml]   [2022]   [Jul]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] Subject: Fix 'void function return statements are not generally useful' warning
    Date
    Fix 'void function return statements are not generally useful' warning
    ---
    drivers/rtc/rtc-as3722.c | 1 -
    1 file changed, 1 deletion(-)

    diff --git a/drivers/rtc/rtc-as3722.c b/drivers/rtc/rtc-as3722.c
    index 0f21af27f4cf..e19a68e4d128 100644
    --- a/drivers/rtc/rtc-as3722.c
    +++ b/drivers/rtc/rtc-as3722.c
    @@ -48,7 +48,6 @@ static void as3722_reg_to_time(u8 *rbuff, struct rtc_time *tm)
    tm->tm_mday = bcd2bin(rbuff[3] & 0x3F);
    tm->tm_mon = bcd2bin(rbuff[4] & 0x1F) - 1;
    tm->tm_year = (AS3722_RTC_START_YEAR - 1900) + bcd2bin(rbuff[5] & 0x7F);
    - return;
    }

    static int as3722_rtc_read_time(struct device *dev, struct rtc_time *tm)
    --
    2.25.1
    \
     
     \ /
      Last update: 2022-07-13 17:20    [W:3.429 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site