From patchwork Tue Jun 27 14:41:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Tudor X-Patchwork-Id: 9811969 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 E3D70603D7 for ; Tue, 27 Jun 2017 14:42:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D7119286B5 for ; Tue, 27 Jun 2017 14:42:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CBB43286CF; Tue, 27 Jun 2017 14:42:28 +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 10A19286B5 for ; Tue, 27 Jun 2017 14:42:27 +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=1/QVLivR+gLIofevPG70KbYEwHrCht+57Fe4gww0JlQ=; b=PV4gijVJWxQ/Xf XIfc1Rbua/N9gMboyhnib587ShGZavEbC2acsjLNvZeMqiyTK4AT5aJisyFvlNf3TBRvBBr36QEho mIHM3flwuK4zlCFDT/oJWpr2ykMIfiVlNAqkPocmRTpFw/254I7GJLJRXE3EbToSIEapykF65NrU/ vPg30uZ+6jRxgob3xcb7T2WNyFJsxab78svPQuBQNV/DSb8UNIYqrPL583jYgX7FALVIgqxAIYdRJ kaAHh68Dc+YE3WhbFwgSHVkQDeHRkuxRDAgSqS32UlpAmznLMAkjPmhgdy9Y6ZozsJ+UN3YA1Bpkn gXmFWD2e9cNN3Pa5RT+A==; 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 1dPrhB-0000Qn-54; Tue, 27 Jun 2017 14:42:25 +0000 Received: from mail-by2nam03on0615.outbound.protection.outlook.com ([2a01:111:f400:fe4a::615] helo=NAM03-BY2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dPrh6-0000Pb-UL for linux-arm-kernel@lists.infradead.org; Tue, 27 Jun 2017 14:42:23 +0000 Received: from BLUPR0301CA0027.namprd03.prod.outlook.com (10.162.113.165) by BN6PR03MB2801.namprd03.prod.outlook.com (10.175.125.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15; Tue, 27 Jun 2017 14:41:58 +0000 Received: from BY2FFO11OLC005.protection.gbl (2a01:111:f400:7c0c::195) by BLUPR0301CA0027.outlook.office365.com (2a01:111:e400:5259::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15 via Frontend Transport; Tue, 27 Jun 2017 14:41:58 +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 BY2FFO11OLC005.mail.protection.outlook.com (10.1.14.145) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1199.9 via Frontend Transport; Tue, 27 Jun 2017 14:41:58 +0000 Received: from fsr-fed1964-102.ea.freescale.net (fsr-fed1964-102.ea.freescale.net [10.171.73.86]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v5REfmnd032306; Tue, 27 Jun 2017 07:41:53 -0700 From: To: , Subject: [PATCH v2 01/15] staging: fsl-mc: move comparison before strcmp() call Date: Tue, 27 Jun 2017 17:41:21 +0300 Message-ID: <20170627144135.15599-2-laurentiu.tudor@nxp.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170627144135.15599-1-laurentiu.tudor@nxp.com> References: <20170627144135.15599-1-laurentiu.tudor@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131430481183358693; (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)(39410400002)(39400400002)(39860400002)(39850400002)(39380400002)(39450400003)(39840400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(9170700003)(104016004)(2906002)(189998001)(305945005)(36756003)(50226002)(8936002)(5660300001)(85426001)(81166006)(2876002)(8676002)(50466002)(86362001)(356003)(48376002)(7416002)(76176999)(86152003)(33646002)(39060400002)(105606002)(2950100002)(6666003)(106466001)(8656002)(5003940100001)(38730400002)(4326008)(54906002)(1076002)(498600001)(50986999)(47776003)(77096006)(53936002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2801; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2FFO11OLC005; 1:ZvTFUBwIrk607Md8Fa8SARIwGL8deJPDOfuOYeRZL?= =?us-ascii?Q?NRmA+S7Kj6jiI92YVhg9CbC0KbGbhLObzUQu6QToQUBep5BEnrOK8a6P7mpP?= =?us-ascii?Q?lPEM+o8uaYDtscd9FMaKWTIWb53Aaj9/qa13q1VmiGDM5/PJKsQnc+EkbhcH?= =?us-ascii?Q?uXcaG4WEqz5GW8FvJzy7cADKfFXnkPf/bTabSeCqE3uW3cN1BZRCcV8SUk8R?= =?us-ascii?Q?SDBj+A3rf5LvRRk4G+XtNqqhkmRZ3cUxD+ly9MnOf+Dn37pykkSVkkfVsF8+?= =?us-ascii?Q?o8fKSXioKSB28l3ojtpHZ4yusa8QE040J1a4hplVk2Fqt/ok2u0GmE1wWy4X?= =?us-ascii?Q?v3m2Ap64XkZ2QJaYxacdV75aOoIB6/7AJfTvu4dREM6YEeOr6vZEbdy4QLXG?= =?us-ascii?Q?AQRLDLmz0IummdjzpfSR9u7y2utj6DxB0XfNIc5BUgFsp5QzIPqpLeDf/0jg?= =?us-ascii?Q?KKXrIzxsOuUufa0wIxj/lebeI0JBwAu8c7KFViWRieDEkLTb45chVFoIbT6I?= =?us-ascii?Q?Bx7+ytbwPKTrUNmjkvsJSAz66YbpDQFXm9zmhTqNTM1GpAzU+dHE+ZLha71p?= =?us-ascii?Q?C3/i7Y9R3rRzwzwTbiQACoxrsBslteJLcZYtCjBuJi30dMUzghUHVHA7kMvT?= =?us-ascii?Q?C40qwnBUZpcwQOFJQYoVdY0t2MbHn59j0uE2t/fqku6YkY1oBH9TNnjnH+fw?= =?us-ascii?Q?YvDWWhBG8fKM+xChqy4njGj02FtG2FEIXaHIJe0Uz3Die7TVgKojfBuwmlT+?= =?us-ascii?Q?j+wmJzehhqbKXr5CTUTLOCimZb/z9fdNHdZnUJ855FliZ4yzwDbEhsJ6Y3+g?= =?us-ascii?Q?LP8fKE43Z9/NmhKlYPYjKoi9HsEQE2eufKHd8XTRppW0PqWmZ0zttjr3aZGq?= =?us-ascii?Q?E0iiOvkAxQZZFZnvjfWJV7GOLaWxaKIkLLRaha6O7VO3iULJ8cIIEn/MPnue?= =?us-ascii?Q?TY/PK0fHaiFD5qy5JKSRRt51WQ7JcJwegF1o9gnfOdgm4tn9prYiRC1TiDD9?= =?us-ascii?Q?zCycG98LErtYpKrnsUkqgpc2F0o0ALmtI8VS38VBM0hZ/eQCQ5tdthPFtUt4?= =?us-ascii?Q?MdvpzHYcvwawZ2Lu6Fssb5pK0wk?= MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 89e7f38a-ddbb-4acd-5d85-08d4bd6aaa0c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506067)(300135500095); SRVR:BN6PR03MB2801; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2801; 3:2zxbyDGHOdWTJqmT6UPA/nDyIOfaHWbFfz9PTiutikmKyz8l7PX0yCX941dQYC3xvwYotVaPMTbGtFsNkG96VukcbWwsQWkHDtmRGXsHD2D0+PnAk7tPAE/tC3xrAA06u3RHnQecHmvXaNk5e/UwMbKagDMPtPJMac8wJgTWfdys5Dkh+Duxmw5GkiyxDKBMpHHpGV5o//GJpVbXTVnv0L5pFbQp8pLY5BrQvKUkHfTgbfGM3s3KInQyVhREgUxnm9+6HLgbTk2Yda3gMU7QYyVEwx2Uk3QI5kRP41/0xi8Itj9Oq1jzV5UFeRrmC5Yto3Hb6ALZGAYXjwBdSRlTKXhtnCX9rgMUtafoKEqhzjZhfSFjjyCOBrD+NMzal0voXD2gARCpvY84OjA2im50oKoZraXRR7MTWYjomZ5gcsQJ/7NuS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c4jw8GfVca92QUB5cbODSddV8Sls3ZayDQkknNPNA//qlw/x8g== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(185117386973197)(148574349560750); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(8121501046)(5005006)(13016025)(13018025)(10201501046)(93006095)(93001095)(3002001)(100000703101)(100105400095)(6055026)(6096035)(20161123556025)(20161123563025)(20161123561025)(20161123565025)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123559100)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR03MB2801; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR03MB2801; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB2801; 4:7MBH+I2JQYhGlsexkogh/TEDIrIqY+X3zg9kvgZzO/?= =?us-ascii?Q?gYm2ngz4y8mc5UAcsu5DFO3wNnbTswKCSlEVqpk42x4Qd3QG8P9ECpz/rabD?= =?us-ascii?Q?MxbtbwoO8L1s33wmoT7TodfdN9pyMgekFy3sEtJxymJXCxO59PCvAJ18k/w2?= =?us-ascii?Q?UpgEUqxwkbpSLpb5qAe/Qnt2ozS5O0CJ8CAlNkEKmBxtw6yyErxusWXiJ94/?= =?us-ascii?Q?Ww9R+f7VSls8EEcydgiWQae9AUzO6y263Bd82pQgbfsXO7jN1zO/l3FQn9Aj?= =?us-ascii?Q?08Yf8DvIce0u3gBm1rd0U1z4InGOmAOye/pp6phX3lvFAKTbe8pvIYeeR8iH?= =?us-ascii?Q?PbBdd0JSUFYWwxqwPa2S9wG/MdrUZ2iTH43wWcOFrnszfBs4yQsvxZvnXnzY?= =?us-ascii?Q?6k7aD/OIuMFJi50TKJtbIG/OdyaoANmMiiQHKUUZgds0uYhzaa2Mb+amSFna?= =?us-ascii?Q?Rw9bFUGfNPMTrhV7z+61UGVwPBcJJCeqvyGtp7YC+sukHSluH55jSst3LLy/?= =?us-ascii?Q?gbxMiUCs+5dqhilNyke0W0udeQJpe036mCEraFud2uN9abxPwUVkatiqxVok?= =?us-ascii?Q?LiyjIq+EJhHuwPHBqiqBQCk5Ov/33C0+dLJdfBRglhNgHERhszKEX45teLlo?= =?us-ascii?Q?2qYD3t6QfW93ggzmYGvJCz2c4q1JrMJLcDIgklH/nvLQSeKza7SEBTXALi7r?= =?us-ascii?Q?2zMUkLx3vtR6uUd3dXQ+I4XOkTAy6mPhW9CsQDkICcrKUkgbwAg2tipRR2ok?= =?us-ascii?Q?NbfqOKpuBGcM+N+KnZr2LW+hrMeDC541B1rGc0ACIhVbCtCieyZkAfZ0lA6V?= =?us-ascii?Q?H3TicwJX7bPf4D97ArrESxE7WAY8x8DBtJqvzLlczoIAZG90Ahprg7xZ1Gn/?= =?us-ascii?Q?QXYUMvGb5BmvxXElkgKwsE4+n358jfmmLUPo5DelYsjsLh/eoy1y6vdX3ZQq?= =?us-ascii?Q?ddOh4YOPoImL8HAE1L88bmufURSvNabOBzS9aQExx6HOzjLgMiJHPsjPyZCj?= =?us-ascii?Q?80vynyWTn3v+RIccMqJNTvqGKl5R4Z8+cvNnjsNWjQt4T/BRdbGjsp+bAoEk?= =?us-ascii?Q?lucFq9FpazoCoDjn5mEBMc87nGidZAQdcuPoMeREE5CJQS63xyskTEcnS2I9?= =?us-ascii?Q?EDsddjaon4UacQ+mPDjAa8XnT299EZSfJuMppALsxfc1gIH5dBk4WbVjwpEl?= =?us-ascii?Q?l+au+anE+mISc7tzo8i3Pdd0ck3XuPQmRErKYZQl9lb68RyXzYD/c2BkG22y?= =?us-ascii?Q?uLTg2Ikg0aGLbtCdoVQvQOyHMJWWeIm70xdfBqs/MocelCsV/7D9Hnh4n9o3?= =?us-ascii?Q?TknjZ6d0TQdsDW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mduRJ6HGR3oTZ1hXTp3jZqvtp1EZlAYgRccb5Fp5uf0PESkw3/Z4/ME9TFsrvsly9UbY3sJEpTy+Whm/bL3f3sJn2qYYODMThFXdp89Qf2nInMw/UuQk8VWwRLz9jHmxNjHdtkBvbg2VaR6k8KM4IcpOnNl71/KW5eeO7y48GPmbXihFtpeRYDCNRiNkA9smHepErnPaePeTeI2kO6ECsZ41Uj0LHd/lhJTlaPiqPg3yV7G934lb+Hfj49uN5njrlFnpSnEaMk= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2017 14:41:58.0706 (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: BN6PR03MB2801 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170627_074221_075139_0B70A582 X-CRM114-Status: UNSURE ( 6.41 ) 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: 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 Move comparison before the strcmp() in this if statement, and slightly increase efficiency by not making the strcmp() each time the if gets evaluated but only when the comparison is true. This was suggested in a review comment. Signed-off-by: Laurentiu Tudor --- v2: - new patch drivers/staging/fsl-mc/bus/dprc-driver.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/dprc-driver.c b/drivers/staging/fsl-mc/bus/dprc-driver.c index 80c080f..1765e2d 100644 --- a/drivers/staging/fsl-mc/bus/dprc-driver.c +++ b/drivers/staging/fsl-mc/bus/dprc-driver.c @@ -29,8 +29,9 @@ struct dprc_child_objs { static bool fsl_mc_device_match(struct fsl_mc_device *mc_dev, struct dprc_obj_desc *obj_desc) { - return !strcmp(mc_dev->obj_desc.type, obj_desc->type) && - mc_dev->obj_desc.id == obj_desc->id; + return mc_dev->obj_desc.id == obj_desc->id && + !strcmp(mc_dev->obj_desc.type, obj_desc->type); + } static int __fsl_mc_device_remove_if_not_in_mc(struct device *dev, void *data)