lkml.org 
[lkml]   [2019]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH][next] rtc: rv3029: remove redundant return statement
Date
From: Colin Ian King <colin.king@canonical.com>

There are two return statements at the end of the function
rv30x9_init, the latter is redundant and can be removed. Remove
it.

Addresses-Coverity: ("Structurally dead code")
Fixes: ef2f1df54a29 ("rtc: rv3029: remove useless error messages")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
drivers/rtc/rtc-rv3029c2.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/drivers/rtc/rtc-rv3029c2.c b/drivers/rtc/rtc-rv3029c2.c
index 4eda0db72b66..7c52efb7d113 100644
--- a/drivers/rtc/rtc-rv3029c2.c
+++ b/drivers/rtc/rtc-rv3029c2.c
@@ -898,8 +898,6 @@ static int __init rv30x9_init(void)
return ret;

return rv3049_register_driver();
-
- return ret;
}
module_init(rv30x9_init)

--
2.24.0
\
 
 \ /
  Last update: 2019-12-19 19:57    [W:0.023 / U:5.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site