[PATCH] fmc: clean up module_init functions

From: Masahiro Yamada
Date: Wed Sep 14 2016 - 11:46:39 EST


Remove unneeded variables and assignments.

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

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(-)

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)
--
1.9.1