From patchwork Thu Jun 8 14:28:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Tudor X-Patchwork-Id: 9775635 Return-Path: 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 A7F0060393 for ; Thu, 8 Jun 2017 14:30:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 97E2C20683 for ; Thu, 8 Jun 2017 14:30:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8C139283C0; Thu, 8 Jun 2017 14:30:16 +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 E71E32851F for ; Thu, 8 Jun 2017 14:30:15 +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=KtsAz5hu6s/WCQ8K9U77N4lCpTifhEx2tgmTXhfuIJc=; b=Ck5g0idvmohO0v BrM8zrBLyYl5m7CO8ebOZMI25CBoGL3In5n7v3I6+z3WBqAcbzZ+bQqGlDmQUwDSny3hGJGeEjxy3 2IhxOEq9rqQaKiKnlaMRQgAdJ4LzWsdfqhvycbLofTM/WCq5S2RTaMtGUpTU56r3R8qIQeOIQ31DQ fhq0E8+iId+7tdzMdUHILUdtTZqYpExpYiVc7JM8wNekenSsLqmiLZgK4/5ur7VenctSYcHHzgYq8 NZGcn4n+Orc23/ePCM39iz30YqzirqRohDgqM5MddH0bd+hjG+OWZN8xHzy24dJzTsjH2s/GvlfcB AIAZUxNmpDv3hCoGB2qQ==; 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 1dIyRy-00049q-6s; Thu, 08 Jun 2017 14:30:14 +0000 Received: from mail-sn1nam01on0040.outbound.protection.outlook.com ([104.47.32.40] helo=NAM01-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dIyRP-00029m-N8 for linux-arm-kernel@lists.infradead.org; Thu, 08 Jun 2017 14:29:43 +0000 Received: from BN6PR03CA0038.namprd03.prod.outlook.com (10.175.124.24) by BN1PR03MB172.namprd03.prod.outlook.com (10.255.200.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10; Thu, 8 Jun 2017 14:29:17 +0000 Received: from BL2FFO11OLC004.protection.gbl (2a01:111:f400:7c09::135) by BN6PR03CA0038.outlook.office365.com (2603:10b6:404:10c::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12 via Frontend Transport; Thu, 8 Jun 2017 14:29:17 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) 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.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11OLC004.mail.protection.outlook.com (10.173.161.188) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1143.11 via Frontend Transport; Thu, 8 Jun 2017 14:29:17 +0000 Received: from fsr-fed1964-102.ea.freescale.net (fsr-fed1964-102.ea.freescale.net [10.171.73.177]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v58ESv5V031552; Thu, 8 Jun 2017 07:29:13 -0700 From: To: , Subject: [PATCH v7 03/10] staging: fsl-mc: simplify couple of deallocations Date: Thu, 8 Jun 2017 17:28:48 +0300 Message-ID: <20170608142855.10455-4-laurentiu.tudor@nxp.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170608142855.10455-1-laurentiu.tudor@nxp.com> References: <20170608142855.10455-1-laurentiu.tudor@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131414057578701295; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39850400002)(39380400002)(39860400002)(39450400003)(39400400002)(39840400002)(39410400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(9170700003)(33646002)(50226002)(76176999)(50986999)(189998001)(1076002)(50466002)(48376002)(305945005)(2876002)(2906002)(5660300001)(2950100002)(4326008)(39060400002)(81166006)(6666003)(498600001)(7416002)(86152003)(86362001)(36756003)(5003940100001)(104016004)(356003)(8676002)(53936002)(8936002)(106466001)(105606002)(85426001)(38730400002)(47776003)(77096006)(54906002)(8656002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR03MB172; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC004; 1:seVTZb6mj9ZOsP6wK4smv8m6qz7iF1pYBwWc1HF+oAK1r0/jqZx+UqamOhJtsMSzLpPaMVrR1Y0Ph7aR/tNGulJFAu64mKYlrIqe6jGLu0oAwTlRcSOikuiewbQ4ueTCJhuOifjGyNlzrdjDWiIAt0jqVvchFp6AUPuPi7eRiHZin7PsHcFzR2k+CYkj1D3GY0eAVFCGrpLVc5wzTag+no7yZv1kq/K9Texmg3OxUA7ViZvX1eW0RZm9+Py3qam/pH2eTAmm62Rq1Nb8r4b45PVjcSqiStdiAcNBYDrQtCg4fb8IgRMfcXhAC8ehIJGUfsifV8D1wx+6V3Dez74k/5EjK8VZiHRycnPFykuZbjrXbLrsjlxhYl+D+e+ZlpfdJ51l8/t7FwwzE8fgfwASZif7vXMXHKEVkZZbOv0+pOFY2HM82qfwmQohgvKWd9zZAHRMy/lSTMoooHGdIpILTHqTxzgAGupnZBasvwjPqKOzr58UkU1Ii1FlBtXTRX3TF+Lo553wUQqVwnudqZmrbun/sgDKLhHaqUuTlUPdixSB6W2Q2IpSQLj+atqNuChxGI+tVkYSFRPzmXGXR2s3qmXTSaS+icTg5PoaLd0ia7iioOS635NE/drYbEklbcVP6FIeqn+Hd52uOPdEffBWsi1Zhr9x5Q83m+ZgsO/t3sZJWtlteiwxf1cvHiR9XM6SMvmbsj6BGzR0So2DUWphHopP5r4lVx9CVtRR6hQRIeA= MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN1PR03MB172: X-MS-Office365-Filtering-Correlation-Id: 48155001-fe1f-41ec-40af-08d4ae7abeed X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:BN1PR03MB172; X-Microsoft-Exchange-Diagnostics: 1; BN1PR03MB172; 3:nAaDJGVDpzCVDGsgMVAEvKIRG6yiVk4zespVDossKOM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ELSYwsoF/uiXnSkdn2Zq+LNhsImiwmS7UCjsnQ59MJyoho3AayLv/brpnweKoUMaBCTLYaoea331yiOwafceZwCAEhUer3gaxGp23pO/Jsup797lvnfF8ecXyxmtZu7UPFmW8qRaR4D7tA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(13018025)(8121501046)(5005006)(13016025)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(3002001)(6055026)(6096035)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123559100)(20161123561025)(20161123565025)(20161123556025)(20161123563025)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN1PR03MB172; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN1PR03MB172; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR03MB172; 4:zXosHhz1COsONTv/d/PErtgTXY0ybrKgjCJ/en4Z3Pm?= =?us-ascii?Q?N3gDzmPP7EWKg3zD8OJ752rjlKZbXk0HmM19ikqhsekWoHeeE+EoCzvPbyMU?= =?us-ascii?Q?IHBMLZ0kzFdBBoP7gYUr6BQcw8GXNKM5RQv9Gs1H2FvtH2cEPrd+OMsiaEh8?= =?us-ascii?Q?r36F78gmqhNXaAHqqCtuLPQGXFxUv+rAKczhKZ7ggqwbt7D/C/9OHfMPENaK?= =?us-ascii?Q?SJqbSHvwUBTus89YKQboJGtgbTVbK3kTer2pQ8Rr26GwfGneHhedBt+uN28y?= =?us-ascii?Q?jaTmhVI73dhGNOMS1a9Asrj5/9Qs/HAETIcjd7GXQ8YGJ8HsETMcQdyIT4MQ?= =?us-ascii?Q?Su0Xv3WjlEgak9A0s03V77h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=?us-ascii?Q?oFOmumhuvrlfcQ65zG35oMl73CsSUgOZ3ZwUQ?= X-Forefront-PRVS: 0332AACBC3 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR03MB172; 23:odIHFiMnBk3sSOC5COQqqF5SswnkWutSXJZMsCb8Mv?= =?us-ascii?Q?iyirQkR9cISq9D1wMA8EGo8V5qSTT3BCLUmqEUaj/TrW/thv9x6oPRxzcTB4?= =?us-ascii?Q?de21yxX7DTjyl3hXXgeH1E9u14/O49kyalFt95qUsS6lTzA3w5+ifP4mhZ3j?= =?us-ascii?Q?MVqEgQXK4Hue9Fai6TLmRvoBtnFfmsrg+sioSbeDKkzivoPT7ThrIgpOX3g9?= =?us-ascii?Q?BQHyrJgM6VIkAPAigXlXqLmjXd4ObyvRX5hym5vpnI7PfSRnoYMmYzr+1Y5G?= =?us-ascii?Q?hRQtue6v90oGax7+vqKGsZc1ZsjkPtLUI70Nerw46aVZXSBt8jCCXpi4poxN?= =?us-ascii?Q?pFINkbr48Wf7CUbK+zsJsZy5AcYahnyVLsDBn4Dez72C+MwkxZHqEe621biD?= =?us-ascii?Q?b2EC0Io0/s5Dbp3YODqrI3F37mzSa4Swdw9yL0l9DUanQkeNCDPueu44P9dX?= =?us-ascii?Q?u5GZcs3R0ZFFnObGfzBQfew0CgAMEx/RXdrShlutAwqX5DdbJNhhWxnsRdYA?= =?us-ascii?Q?+DgylV2Pjwaby1eOQY3QEkdmzpzK1LqOtlIDQ3cTRTH5FEoFM0wPllGIoquG?= =?us-ascii?Q?gANxDcxqmvI1i2Im5SaTa+poAepU4ucWOVm4MqtvK8NKdTctoL0MgSt8yExe?= =?us-ascii?Q?7N0LFY+baHF5RJCbJeNcB4ec0WsPfpfaQ/oboJ2q+oGLVIuWb/xg2596+evG?= =?us-ascii?Q?SxHSTl9ffCBrwaT2ejR3Ac03hTGqkJOvL67bDLssI7ecEVzmzPNx+2c9JI+D?= =?us-ascii?Q?hsFbmvk18jG40ByweiMus5kF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VLH9NolS5sGpgg5OwxautFj25AAqdD10YdHhNUUzZ62yoclLk5kK0k9wkh1OcSlpTnluTgoAIKawmQCJBI1rPTMPNjCJByvfwBhKTP2sNmY7tPlFpEqF173dNXoK5ztrpp1ZayLKVMrw== X-Microsoft-Exchange-Diagnostics: 1; BN1PR03MB172; 5:MexSe7Vkk5JRnkBdG9gypY6MM3oCzufFJLjIed7qMdn8zeauy1TxNUbQNinKTjs8eImR4OK+NHX5nSXYqFEKJ3cWT91Pg0ImZXssH2wTwzPkYc+bOd4wEfQ3ChJaVwQQ7IuqHKLZCoGZyyjihNeOJHtMpY0Q0XAm71czZH6K1631G11nHgENLBH1/OSnAxGwM0b9HHIPj9AmLroUuZ8KS65wOqz7kGPUPkXjm6xivG7gc4SNBuBsxszhqNPMN/eCUSVquX4wRk3GAnyuPaB/CncfrbQXv3nz5wWIBWweDwOaw2IzdQS2epCFsf+fp41gt6KCAKGycsDZ9NqPtTxzJKc/JCg/WEGSfL4nI92Q9Z+uduW6FGRvhcyI5/wpgrQztlJvahxXHbOqa5s1eL51nHkvrZ/bih4hHsP/ZnLkg6+lMfzzryjee7SHVNlGK9HQvO0+vuDZfvjOwmFCIXrkH8xpsXwQoUbhJe//G+0fyjfDs47A6g+cWT1Q9ARxZywDmwAL/NM2xYVOJZ56yhB1wA==; 24:E5u0j3s1MHf3e15liZ+psAtMLNCcwe4a4nSRtwCO/NMqNmD9PoSIhGnpZMxVPz8pte+9yM5dHKmNydAAeqC6tL+ZbT5qJSVUIzRVXc+DneY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN1PR03MB172; 7:FGhXhSfk4eqW/wkJ2du3C+YCpGRatbfdj3zpGrNjcIxVzKdX3D6hyCQOctPDKj/cITuwdREWw/+s55LyMC+1a0397AJoHVaQutFQKb/gXnTk3l4vsjUrN2V2OUw4Hai9iMNDt209PXJfLLYTBctV9YFCQi2DRi4s+5E6i7a+00VrWqGZceiSdjp3SfPHSHGCTj1R0W2np87avFPA5EWjbDO8oBtBaePt3ejkCC+qCC/HhN2vbWP5lhra78E4iEJsvMuA2XUdVMvOwRPvdtjzFd/pGlO8413PJqN+sKrgQ0mJqPeJ73YgK9k4jUU0wJep+jyaOGzA7YQxseiz4WKfng== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jun 2017 14:29:17.6829 (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.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR03MB172 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170608_072940_167486_CB23C3AC X-CRM114-Status: GOOD ( 12.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, ruxandra.radulescu@nxp.com, arnd@arndb.de, marc.zyngier@arm.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 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Laurentiu Tudor Simplify a couple of deallocations code paths. This also fixes these checkpatch.pl false positives: "WARNING: kfree(NULL) is safe and this check is probably not required" Signed-off-by: Laurentiu Tudor --- Notes: -v7 -rewrapped commit message drivers/staging/fsl-mc/bus/fsl-mc-bus.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) 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; }