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