diff mbox

fmc: clean up module_init functions

Message ID 1473867870-10129-1-git-send-email-yamada.masahiro@socionext.com
State New
Headers show

Commit Message

Masahiro Yamada Sept. 14, 2016, 3:44 p.m. UTC
Remove unneeded variables and assignments.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

---

 drivers/fmc/fmc-chardev.c      | 5 +----
 drivers/fmc/fmc-trivial.c      | 5 +----
 drivers/fmc/fmc-write-eeprom.c | 5 +----
 3 files changed, 3 insertions(+), 12 deletions(-)

-- 
1.9.1
diff mbox

Patch

diff --git a/drivers/fmc/fmc-chardev.c b/drivers/fmc/fmc-chardev.c
index ace6ef2..8850ea3 100644
--- a/drivers/fmc/fmc-chardev.c
+++ b/drivers/fmc/fmc-chardev.c
@@ -184,10 +184,7 @@  static int fc_remove(struct fmc_device *fmc)
 
 static int fc_init(void)
 {
-	int ret;
-
-	ret = fmc_driver_register(&fc_drv);
-	return ret;
+	return fmc_driver_register(&fc_drv);
 }
 
 static void fc_exit(void)
diff --git a/drivers/fmc/fmc-trivial.c b/drivers/fmc/fmc-trivial.c
index 6c590f5..995465f 100644
--- a/drivers/fmc/fmc-trivial.c
+++ b/drivers/fmc/fmc-trivial.c
@@ -90,10 +90,7 @@  static int t_remove(struct fmc_device *fmc)
 
 static int t_init(void)
 {
-	int ret;
-
-	ret = fmc_driver_register(&t_drv);
-	return ret;
+	return fmc_driver_register(&t_drv);
 }
 
 static void t_exit(void)
diff --git a/drivers/fmc/fmc-write-eeprom.c b/drivers/fmc/fmc-write-eeprom.c
index 9bb2cbd..0ea0126 100644
--- a/drivers/fmc/fmc-write-eeprom.c
+++ b/drivers/fmc/fmc-write-eeprom.c
@@ -159,10 +159,7 @@  static int fwe_remove(struct fmc_device *fmc)
 
 static int fwe_init(void)
 {
-	int ret;
-
-	ret = fmc_driver_register(&fwe_drv);
-	return ret;
+	return fmc_driver_register(&fwe_drv);
 }
 
 static void fwe_exit(void)