[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1473867870-10129-1-git-send-email-yamada.masahiro@socionext.com>
Date: Thu, 15 Sep 2016 00:44:30 +0900
From: Masahiro Yamada <yamada.masahiro@...ionext.com>
To: Alessandro Rubini <rubini@...dd.com>, linux-kernel@...r.kernel.org
Cc: Masahiro Yamada <yamada.masahiro@...ionext.com>
Subject: [PATCH] fmc: clean up module_init functions
Remove unneeded variables and assignments.
Signed-off-by: Masahiro Yamada <yamada.masahiro@...ionext.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(-)
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
Powered by blists - more mailing lists