From patchwork Wed Sep 14 15:44:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 76224 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp1941942qgf; Wed, 14 Sep 2016 08:46:44 -0700 (PDT) X-Received: by 10.98.213.68 with SMTP id d65mr5734904pfg.112.1473868004057; Wed, 14 Sep 2016 08:46:44 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x80si34060378pff.224.2016.09.14.08.46.43; Wed, 14 Sep 2016 08:46:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764407AbcINPqg (ORCPT + 27 others); Wed, 14 Sep 2016 11:46:36 -0400 Received: from conuserg-09.nifty.com ([210.131.2.76]:48632 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762170AbcINPpB (ORCPT ); Wed, 14 Sep 2016 11:45:01 -0400 Received: from grover.sesame (FL1-111-169-71-157.osk.mesh.ad.jp [111.169.71.157]) (authenticated) by conuserg-09.nifty.com with ESMTP id u8EFiXCC027834; Thu, 15 Sep 2016 00:44:36 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com u8EFiXCC027834 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1473867876; bh=uFu9HLm22crPiGms6AJCgYgBDjmp8LmTGLVTNgztFpc=; h=From:To:Cc:Subject:Date:From; b=Ghw0omxRk9Mcy94EJB2Nnmlo4iCEpHukTosksrMznnTvy1Pw/DgITVZXvpMzhRxQH DiREzkwBawqOf1IRrCOXCYsnqiCx7Q7oLf8pDM2qNFLzJNwqzYyZQDwxK+Loca7tJ2 d8fkoXh3Ga5O5zRfsbSZbMXdWU7vpVE0azK96JLI0A+t/7oBbm7oKexKXnOiPkntnp 89hp6LJO2FdlHqVw4uhLDr6qm3cxBBumPQJkdvu6ZU4+qePuSearAWLt6FwCKqIbrS cWKFS1k8iqwUB5r5MjCmMGBuwJl++EMdEQA2+SqSXkxfC3FH6QX0wbXlsdZGvsaRpL LQZjr1rXlpjYQ== X-Nifty-SrcIP: [111.169.71.157] From: Masahiro Yamada To: Alessandro Rubini , linux-kernel@vger.kernel.org Cc: Masahiro Yamada Subject: [PATCH] fmc: clean up module_init functions Date: Thu, 15 Sep 2016 00:44:30 +0900 Message-Id: <1473867870-10129-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unneeded variables and assignments. Signed-off-by: Masahiro Yamada --- 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 --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)