Message ID | 558BE829.4070901@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1240EC05AC for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 25 Jun 2015 11:41:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4D75F2060B for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 25 Jun 2015 11:41:06 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6B7682066D for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 25 Jun 2015 11:41:05 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z85US-00075b-Rl; Thu, 25 Jun 2015 11:38:44 +0000 Received: from mout.web.de ([212.227.15.4]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z85UP-00072T-R8 for linux-arm-kernel@lists.infradead.org; Thu, 25 Jun 2015 11:38:42 +0000 Received: from [192.168.1.2] ([77.181.56.149]) by smtp.web.de (mrweb001) with ESMTPSA (Nemesis) id 0LpOOj-1Ye04746J3-00fFFl; Thu, 25 Jun 2015 13:38:19 +0200 Message-ID: <558BE829.4070901@users.sourceforge.net> Date: Thu, 25 Jun 2015 13:38:17 +0200 From: SF Markus Elfring <elfring@users.sourceforge.net> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Tony Lindgren <tony@atomide.com>, Russell King <linux@arm.linux.org.uk>, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org Subject: [PATCH 1/2] ARM-OMAP2+: Delete an unnecessary check before the function call "omap_device_delete" References: <5307CAA2.8060406@users.sourceforge.net> <alpine.DEB.2.02.1402212321410.2043@localhost6.localdomain6> <530A086E.8010901@users.sourceforge.net> <alpine.DEB.2.02.1402231635510.1985@localhost6.localdomain6> <530A72AA.3000601@users.sourceforge.net> <alpine.DEB.2.02.1402240658210.2090@localhost6.localdomain6> <530B5FB6.6010207@users.sourceforge.net> <alpine.DEB.2.10.1402241710370.2074@hadrien> <530C5E18.1020800@users.sourceforge.net> <alpine.DEB.2.10.1402251014170.2080@hadrien> <530CD2C4.4050903@users.sourceforge.net> <alpine.DEB.2.10.1402251840450.7035@hadrien> <530CF8FF.8080600@users.sourceforge.net> <alpine.DEB.2.02.1402252117150.2047@localhost6.localdomain6> <530DD06F.4090703@users.sourceforge.net> <alpine.DEB.2.02.1402262129250.2221@localhost6.localdomain6> <5317A59D.4@users.sourceforge.net> <558BE713.1020409@users.sourceforge.net> In-Reply-To: <558BE713.1020409@users.sourceforge.net> X-Provags-ID: V03:K0:C6T3Wu4aOUTryx87u288q25qVNr9ZaFTyCjmfzdTGiZ0xtHq6pd 7ICsCS82no195yJcvkRbzefWzns0bc3yhH4UuJm1mF86IIhK14JBhobNMx82iTJlyqh9gFi +5h1fFRpEgfeVgaBsGTaAQG6kXZMu0yarzJ441HSslORrDAd24MAWJf/nKpu7pSWVTH+lb5 SRr397uVWvdFRMVfUGlQA== X-UI-Out-Filterresults: notjunk:1; V01:K0:tGVDiQI6dIM=:pKPlB0Soi33SkqV8uD6N3Y M/zVbK5EBinTAJdQ04dHO8UowllUmLoeJc1JP2+LuMpEDM4wxzNT8ZnTL+90nKggy86O8Zhw3 ahkYQlsF/vKtjwtVplHF6ipQWt0f4+7V/hrvJD4SnB/9FDRKM/Qdvzw4/If6hPimCkdY9An3x /mFcPyVXlmiT0EfSk87Z6yBl3ZVBTgks/7ZjZSSr4nMsiNzMwXE+CPT1RzT5wtOPYOcSNoKIs 5XG1ERozH019yrsKU7n51q9v2YkgbbnURWgPoWVjJI9mDNYWy+5zi6RWoLYhfLUglVSYYIlWG oaFm6w7S56FUAX5qNHWFdy365zJT5Xs4C/sz0ZK4ZCeYKV8lUQghRS+43CJBDEq1cuZbPmGon GdOUaHSCFAqe/8Yj6R9qbBVCQei8mEzDa7spu16IhcaDiuVeclFkmJ6yQ1Xy8r94R18BVwtZe hz/Jyot+E1LZE2OvzteOVIaIvcsBcQef5YgZDyaogTOB0jbi92iPT0Cu9MdbCKqzZwK6FVndY eY0pWrRJu4OYjnGH/ISrMMy+jZ3US/WIPXlGhBP8pN/0daAeLzYUq4/ZovYL486C1Jae/f4Ee A3bHUz8aDpdf8Cen/ITDA5qoRx3pZ0+VfN8OzEx67R/cNiifrbX19p03k1dyUAKyEAQu0/bk7 Ekcb4plJsG4uLiqJW4zu7kjZ6GQ+07uahClQZF3XdTwpnG61L43GJzTUO7Bf63GVpHZM= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150625_043842_275468_0F4B5EDF X-CRM114-Status: GOOD ( 11.84 ) X-Spam-Score: -1.9 (-) Cc: Julia Lawall <julia.lawall@lip6.fr>, kernel-janitors@vger.kernel.org, LKML <linux-kernel@vger.kernel.org> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm/mach-omap2/omap_device.c b/arch/arm/mach-omap2/omap_device.c index 4cb8fd9..196366e 100644 --- a/arch/arm/mach-omap2/omap_device.c +++ b/arch/arm/mach-omap2/omap_device.c @@ -193,8 +193,7 @@ static int _omap_device_notifier_call(struct notifier_block *nb, switch (event) { case BUS_NOTIFY_DEL_DEVICE: - if (pdev->archdata.od) - omap_device_delete(pdev->archdata.od); + omap_device_delete(pdev->archdata.od); break; case BUS_NOTIFY_ADD_DEVICE: if (pdev->dev.of_node)