Message ID | 1395313907-25318-6-git-send-email-lee.jones@linaro.org |
---|---|
State | Accepted |
Commit | d9ba46d32c0edc5207fec424230dfa786a24a117 |
Headers | show
Return-Path: <patchwork-forward+bncBDA7X7F2WUEBBLM2VOMQKGQE6RSAVPY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f197.google.com (mail-ob0-f197.google.com [209.85.214.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D818320143 for <linaro@patches.linaro.org>; Thu, 20 Mar 2014 11:12:45 +0000 (UTC) Received: by mail-ob0-f197.google.com with SMTP id wp18sf2755064obc.0 for <linaro@patches.linaro.org>; Thu, 20 Mar 2014 04:12:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=B8gEZfKcTICgFMfnaVmDh2fFwlAEwV2KQxB5M/Fyiyg=; b=fyuDcUsbJaJXjSRFvPTmUbIuJt3C2TNYZFZAjP0FVt4InO1YVr732zIPsjQon3R1iI qUqjiJbhsUg25dfmRoANNoEC0+ZAikKMlX0mfue8jvNwZAptqERiUe2acKeFbW6E26ig 66j4h20EU9WWY57jnde2R8brQwQhM2i4IU8kv2cNsdFWKdZ3aaCBK2wigBbQSM2bGzpa v4nB18h24tkrSYhjbUDwC+6VTTEItPkjM2ElmWOLHiWWJ3fHUMsxPaJYd19ePCHh9gt8 Y+NSZ73QmPaFwTn/gZ3u0Ozca+hgwyo4LxfyqfBqskD/sBKP0F6DIJteUZbN4lUBSfS6 IIAQ== X-Gm-Message-State: ALoCoQlPaD9WRKYiFvXdl4XogGWAE6m0330ta9ZnoMzpx3ORhQbDlQ8PvR1MoN8sX+w9QH4N0QAv X-Received: by 10.42.115.129 with SMTP id k1mr15895424icq.25.1395313965320; Thu, 20 Mar 2014 04:12:45 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.47.239 with SMTP id m102ls187045qga.8.gmail; Thu, 20 Mar 2014 04:12:45 -0700 (PDT) X-Received: by 10.58.133.15 with SMTP id oy15mr32368359veb.19.1395313965208; Thu, 20 Mar 2014 04:12:45 -0700 (PDT) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id a15si344242vew.115.2014.03.20.04.12.45 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Mar 2014 04:12:45 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.170; Received: by mail-vc0-f170.google.com with SMTP id hu19so741290vcb.1 for <patchwork-forward@linaro.org>; Thu, 20 Mar 2014 04:12:45 -0700 (PDT) X-Received: by 10.221.37.200 with SMTP id tf8mr22133vcb.54.1395313965124; Thu, 20 Mar 2014 04:12:45 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp379119vck; Thu, 20 Mar 2014 04:12:44 -0700 (PDT) X-Received: by 10.66.27.67 with SMTP id r3mr45640407pag.62.1395313964175; Thu, 20 Mar 2014 04:12:44 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id vu10si1223568pbc.224.2014.03.20.04.12.42; Thu, 20 Mar 2014 04:12:42 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757943AbaCTLMe (ORCPT <rfc822;linus.walleij@linaro.org> + 26 others); Thu, 20 Mar 2014 07:12:34 -0400 Received: from mail-wg0-f51.google.com ([74.125.82.51]:51230 "EHLO mail-wg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757712AbaCTLML (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 20 Mar 2014 07:12:11 -0400 Received: by mail-wg0-f51.google.com with SMTP id k14so473234wgh.10 for <linux-kernel@vger.kernel.org>; Thu, 20 Mar 2014 04:12:10 -0700 (PDT) X-Received: by 10.180.21.225 with SMTP id y1mr1778544wie.24.1395313930257; Thu, 20 Mar 2014 04:12:10 -0700 (PDT) Received: from lee--X1.home (host109-148-116-196.range109-148.btcentralplus.com. [109.148.116.196]) by mx.google.com with ESMTPSA id jd2sm5535554wic.9.2014.03.20.04.12.08 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Mar 2014 04:12:09 -0700 (PDT) From: Lee Jones <lee.jones@linaro.org> To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, computersforpeace@gmail.com Cc: lee.jones@linaro.org, kernel@stlinux.com, linux-mtd@lists.infradead.org, dwmw2@infradead.org, angus.clark@st.com Subject: [PATCH 5/5] mtd: st_spi_fsm: Succinctly reorganise .remove() Date: Thu, 20 Mar 2014 11:11:47 +0000 Message-Id: <1395313907-25318-6-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1395313907-25318-1-git-send-email-lee.jones@linaro.org> References: <1395313907-25318-1-git-send-email-lee.jones@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
diff --git a/drivers/mtd/devices/st_spi_fsm.c b/drivers/mtd/devices/st_spi_fsm.c index 921b44a..bea1416 100644 --- a/drivers/mtd/devices/st_spi_fsm.c +++ b/drivers/mtd/devices/st_spi_fsm.c @@ -2081,13 +2081,8 @@ static int stfsm_probe(struct platform_device *pdev) static int stfsm_remove(struct platform_device *pdev) { struct stfsm *fsm = platform_get_drvdata(pdev); - int err; - err = mtd_device_unregister(&fsm->mtd); - if (err) - return err; - - return 0; + return mtd_device_unregister(&fsm->mtd); } static struct of_device_id stfsm_match[] = {
Reported-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/mtd/devices/st_spi_fsm.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)