Message ID | 20170531105852.22304-4-laurentiu.tudor@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 29300602BF for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 31 May 2017 11:00:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0099C2836F for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 31 May 2017 11:00:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E894928405; Wed, 31 May 2017 11:00:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 559592836F for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 31 May 2017 11:00:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0Uitnl6nNWBOCa303lRra1JAXN/dhuDeIZU3+OA7yJo=; b=XdtJcHepc7ylt+ zKHogu77XhyLwPEk7g8y2naQ1sCl+7RiJaIWMOqh17fKNcsjfJiECRsAzEGigABDXA2HSlSnYiYsq Yp3xPYFhQSG0jFhldD1i6k2Gu2EqSGDgejLzWzi7grPPDoTIrbKoSqp7hf4oS7oWXM5EAImpJ+hE3 p+JcDfkBLb8W/pNI87NAygkArU1vaQGhudre7SBVVJIKenRqJCUlxO+lT1X+OZVtTnL+MRVTXb63K rArqw33mKXASeE/6GPampWaSt9KfPFueuwDeFAPBOZl8Ky3RS5HRp0IWQ25wRDFkFtIxhUwWLp0/W 7JiMXwg4UWZlaGKvJT0Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dG1MQ-0003zM-0Z; Wed, 31 May 2017 11:00:18 +0000 Received: from mail-sn1nam01on0055.outbound.protection.outlook.com ([104.47.32.55] helo=NAM01-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dG1Lr-0001wy-6p for linux-arm-kernel@lists.infradead.org; Wed, 31 May 2017 10:59:45 +0000 Received: from BLUPR0301CA0037.namprd03.prod.outlook.com (10.162.113.175) by MWHPR03MB2574.namprd03.prod.outlook.com (10.168.206.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Wed, 31 May 2017 10:59:20 +0000 Received: from BY2FFO11FD045.protection.gbl (2a01:111:f400:7c0c::196) by BLUPR0301CA0037.outlook.office365.com (2a01:111:e400:5259::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9 via Frontend Transport; Wed, 31 May 2017 10:59:20 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BY2FFO11FD045.mail.protection.outlook.com (10.1.15.177) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1075.5 via Frontend Transport; Wed, 31 May 2017 10:59:20 +0000 Received: from fsr-fed1964-102.ea.freescale.net (fsr-fed1964-102.ea.freescale.net [10.171.73.177]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id v4VAwtf0004429; Wed, 31 May 2017 03:59:15 -0700 From: <laurentiu.tudor@nxp.com> To: <gregkh@linuxfoundation.org>, <stuyoder@gmail.com> Subject: [PATCH 03/10] staging: fsl-mc: simplify couple of deallocations Date: Wed, 31 May 2017 13:58:45 +0300 Message-ID: <20170531105852.22304-4-laurentiu.tudor@nxp.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170531105852.22304-1-laurentiu.tudor@nxp.com> References: <20170531105852.22304-1-laurentiu.tudor@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131407019606433360; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39410400002)(39380400002)(39850400002)(39400400002)(39860400002)(39450400003)(39840400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(2906002)(5660300001)(97736004)(5003940100001)(7416002)(305945005)(498600001)(189998001)(2876002)(106466001)(105606002)(1076002)(104016004)(77096006)(33646002)(53936002)(76176999)(2950100002)(48376002)(38730400002)(50986999)(6666003)(50466002)(4326008)(47776003)(54906002)(86152003)(8656002)(356003)(36756003)(85426001)(50226002)(81166006)(86362001)(39060400002)(8676002)(8936002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB2574; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD045; 1:5PQtcF9aD2qes/jd5Ag1kg6GvKhHofX7QZXgsVJt+WMbCtCIWfaoyQgVdh3K+1wLIbOYt1h+EMJBTIQbdfP+xLV3FrXqcjmsUsdfz/Ug7V6JDV95zOZFmtLMDtZri7MBeRTMznykKJzUh7eOyrjP6bTPOILRXG5jWijUPvu3vdW9mQGCZWh6a9YXPYZ8TkgrFbsl8+pyASO2cnno5qrx2/AGt45Cc6ELaXn8xc39Q54nC9qVLO72L2kwtspYz62eFMBRNlv7qj8gsN19fE8UR2ZzJ7JEVwe3H1LkxvActDdTHXxau3IA8ftnnehmdpDjBRVmL4amE08UBVOAodmSr3zMkZEg5ox3DRdibOmF8ucJmQ4VxgGbBFucFJg0pF6+NMkC4ZTmfxN3BzVbybk231cV42aFpX6opOpfPqKMtJebPbndK/+SWQWpYghmFagdZ4PmUT3T9aLUIYDPzk+DKJpLkDLTIX/f9R821lO4cgdloJXo6ES8dH+ENuyyGSuVEr0GaUdpyezdADaju1jNw09MrX3gtS4S/kWGHQJHKovOp0xZuJaJi4n44X9khw2SgX/xe7cz4F2oxq8FOeQgsrOfns0wuMBXTjLzR7Z+TElIBRkCbTm/uNykNQHDqn+x2arr99RndElzT+5JS+1eGfKgY/wb8Lr1+R4DakPZha8= MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR03MB2574: X-MS-Office365-Filtering-Correlation-Id: 03dbff37-be36-40fe-fcf1-08d4a8141716 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:MWHPR03MB2574; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2574; 3:rZVV2AJhuJNJqfyR7UBjxGybh86BVCD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t/2YrkvEe9xTc3Cs+JkWP9xTcsyISvphrrKiJDrxWRDjGa+XHRwZxTWiFUg9863NjW0AH67qjYUQS5q5p2Q4RhNFKKDkY0gdaZpcd36EphaBbHN8g+fFe7hwsiZeBfZAcQKqysiCXzD5LxErSM95tSbQBkJ2RrAQxD7v513c3d3lxgW9NgzcAuHi1iYLM= X-Microsoft-Antispam-PRVS: <MWHPR03MB25742FBAD87E7645B0698804ECF10@MWHPR03MB2574.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(601004)(2401047)(13018025)(13016025)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(6055026)(6096035)(20161123559100)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123561025)(20161123565025)(20161123556025)(20161123563025); SRVR:MWHPR03MB2574; BCL:0; PCL:0; RULEID:(400006); SRVR:MWHPR03MB2574; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2574; 4:LYgzY7fNuKfXqZlQX30n1cDbgd7sHqCecqdub8E1yItkO+Q7SP4z9NuRdQIa3bzOMwoenzW31LWNJT/BJn2uGOnRjF7cpLVDqwBxsmNOWIgUvwGWyXeMKVkmGXn5DYVs4hCJNdHxBsEO0jxWdZgzMqMJcfiCFlfGvb7eu3zyQi+HvrD+pOdeCBzgc+bcBaHPa3NKUsoSDlkwziXf8nxWgqXm5OND2PQLgBnwAVbASh8r+lIzsmBpK9FWBKyTyYLCHcep55ql7kYVXV/PRhUOYj2wkGiTNowqR/Gg+5wzg3HQMBkXRyb1LADXVQwtryUBBQNYlXrdlluwKDzIVlQZnkG7Kc9ugAt//gy2UfDJVAoXQ9tVPxmoG3i5x+Zjakqm52OmGqpKmAH+FfRFUfcA68O3f3VAWisnSWQr34HM3ffiwpwltCPeG3PXWaIk2WYsB9UXUNQ9KIdQHY4QViT7beqnKu8F6ay4u0Dmkjiyt7zqoP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4Zea318JkS32FS3trexozJergyas9ikAfGObxTtX0hZduGItSHSYXQqN?= =?us-ascii?Q?YV9liE+xw9+aKxaAjm7ozY0a8thv2n2iIC3R5qv5paJsemJvV9j695JaYUd/?= =?us-ascii?Q?aD1ovk0tVbnSNchZ0w8JoRuwsFkuUzioZm66CGnD+hJiAI51Fqe+TmPWEAUP?= =?us-ascii?Q?cGPYoZPvG62DYkLw3iVjkT2R7ILRmpkbezlJHrFOgc7qiV5rSdXFiUN4nSyS?= =?us-ascii?Q?YHqJsAo+Oj7DY0gKPM/2Tpz5xho8QfdljNmnJNQ7lz+t/d7fdhc0erA39Ssr?= =?us-ascii?Q?XTwCenOco7iR0wYW/XyqeWxNvaX1Us3KEBGXROPviZv6NO/sJ2fu0PZJ4wAY?= =?us-ascii?Q?YrEOQCYZfsxYNIxVU16hxe+xT9n5t5k6D4wAUsC3fIbgv0b+kwo3lgBCsguV?= =?us-ascii?Q?fB0YJkUWmMUhEsgK1rI03MtypBIb0sS7weIXzB78aVcKXsxqlgSe4vhZL6C/?= =?us-ascii?Q?DLnxcQ0AwnlOPGR2n3je/mpM7DvzhHr/TsWN1IlZxjenLtJpucN+uzywgQgc?= =?us-ascii?Q?XPPrclOtvvMBOTuRzU+mYoQNvBaw/OfimM/s4+9/PoSAmb/ojI5n3AkMCLhV?= =?us-ascii?Q?kYboy1Qnk2MhtUHrQa4UeGtlgznYcNfnZ2+mfi1ETGD3o72gTbtLOOHhskTy?= =?us-ascii?Q?UPU48aEU8uWPAKNCaMaKmEmF7+++EmwIkCHHDAZaS+G+hcumE70jX5S6xvbJ?= =?us-ascii?Q?JH8E3RTLMU/TAidzP2eBLMqHypKd8PuOJeheHXyGL0WwGqHf+KAeUscTWuA2?= =?us-ascii?Q?bcZ+yRWfUvR+zzJipAglXT+Znq8TovxFKZataYA/osFE5xT49OPmSB2gWmmg?= =?us-ascii?Q?Vo0lb7QuPtKEnd0ixiwAe0=3D?= X-Microsoft-Exchange-Diagnostics: 1; MWHP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gNHHpH0dM/W8GPW98huzK3G7/bCnCxAodd+QDvgdwhoGIVC8MyL0dVgyRVb32PhP9YbqiocWwMHohooPB4d7X6Yl8skEohYhy8omdpF6Az9X2vSnvnfFIeGcYrKifNAOUnYZ1dCIRw5aokPd+BI06vmPwKYrFXQ7rj+lroo+PlhRo8oFS88Dotjl0v+vthmeuQzgV8c43g== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2017 10:59:20.4561 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB2574 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170531_035943_414191_4A229CB4 X-CRM114-Status: UNSURE ( 9.13 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 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> Cc: devel@driverdev.osuosl.org, arnd@arndb.de, ruxandra.radulescu@nxp.com, roy.pledge@nxp.com, linux-kernel@vger.kernel.org, agraf@suse.de, catalin.horghidan@nxp.com, ioana.ciornei@nxp.com, leoyang.li@nxp.com, bharat.bhushan@nxp.com, linux-arm-kernel@lists.infradead.org, Laurentiu Tudor <laurentiu.tudor@nxp.com> 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-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/staging/fsl-mc/bus/fsl-mc-bus.c b/drivers/staging/fsl-mc/bus/fsl-mc-bus.c index 50eb415..7b48ade 100644 --- a/drivers/staging/fsl-mc/bus/fsl-mc-bus.c +++ b/drivers/staging/fsl-mc/bus/fsl-mc-bus.c @@ -420,15 +420,11 @@ bool fsl_mc_is_root_dprc(struct device *dev) static void fsl_mc_device_release(struct device *dev) { struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev); - struct fsl_mc_bus *mc_bus = NULL; kfree(mc_dev->regions); if (strcmp(mc_dev->obj_desc.type, "dprc") == 0) - mc_bus = to_fsl_mc_bus(mc_dev); - - if (mc_bus) - kfree(mc_bus); + kfree(to_fsl_mc_bus(mc_dev)); else kfree(mc_dev); } @@ -559,10 +555,8 @@ int fsl_mc_device_add(struct dprc_obj_desc *obj_desc, error_cleanup_dev: kfree(mc_dev->regions); - if (mc_bus) - kfree(mc_bus); - else - kfree(mc_dev); + kfree(mc_bus); + kfree(mc_dev); return error; }