Message ID | 20210928151833.589843-1-f.suligoi@asem.it (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=7ONh=OS=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3B98C433F5 for <linux-arm-kernel@archiver.kernel.org>; Tue, 28 Sep 2021 15:21:31 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BBC3861246 for <linux-arm-kernel@archiver.kernel.org>; Tue, 28 Sep 2021 15:21:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BBC3861246 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=asem.it Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=2OBId8fk7WpPXxQsSFFpOC7wvWYhj+dmSA01txhvV2k=; b=qqTYEPOptq91aN WYSCUfvEsBzdYq9EYZ45VPwSqKDDj2eugej4kKVdbJQ7NMPbzKrLLZm5mK7U/Ew1HMnUm8Dnjlqe4 qisL00Y2PcTN6C1vA49nGNhgzS71T6AxwB4KdsfrI8T87wxEBnksDDDsz9Fl5calOohGGmkNPyTx8 zNNROPxNz9MqrKeWOYU204GCkw4vPQTK8PQhsMBaypmLVtpvC0IkE419z8Ywx2PPCRIAwQUVgjOlU 7JWID8BaDGKCmCPfwyGVicH78lWXcVQX8tV2M7AGWqPxNPV9VuCnYb9VEIDhwiv4Q01H+AHHFYs9F htmtEAX68M79gJSRh/0g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVEt1-007js4-49; Tue, 28 Sep 2021 15:19:15 +0000 Received: from mail-eopbgr60070.outbound.protection.outlook.com ([40.107.6.70] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVEsk-007joY-Fv for linux-arm-kernel@lists.infradead.org; Tue, 28 Sep 2021 15:19:01 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QuwenXD65pd46y/SDC76qs6GQn3XtN1s7lYC8Ahf/mBVOgEW/GnMKm4sLkTTbFpByLdAXrSIcA1vPB20DrPNjjRg2XYXMQvJAp+V5Bpo5TbjWjRDsDd7a+YFt0bnx5TjDQ8Us8YJR8l2yI1x/atyz5hlxm/jiJD2NMaHwl5eNJ/NKIwOXdhzle3U9HJn6N+dJ2q5/KQEv79uXTAaG+m5MK3uCuAO/fiJuw3qL2ctUmcYe8ftMKzTCC3OhqDc/x+DBkmV23K6HVT4qm2wHGe5tQ2L85VMt2ppq4qkAiKFlI1pvYvZd/Th8yr0Alr7/i9Th8GO2DSYEE/xwUx72OdMaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=U/J9Jxtg1ZhSR/t0TTLQkJ3qosQzIjuGrAoDsnxTPBc=; b=TknHtlNR5WAWy9zvQBHj83aaQQ/InX9hSds2kJfK4UR0A4AvJzhPvQetjiz2xFvXnqYGnl90k/Jc56SCRmCu+uFWYRaMZQmgvDzJGj5m434NLNgba/kJJhwDXA60ByraRoQ3QP0N9vmLWFWkbVO9/rA7mgRcIB0toNRl3slw0kPtfiXTfplwA1CIcF1NuH/42fbAfZmEQLBuxSbPj1Dri1Hs0KzldoJsTfYxWXyWLhgPy9aezNBaBAti5wBEkwg3uoTWpoeTu8urv3VPODvhW5qeFG7tfY5uYqhhmiJIHM8ec5NF++Vb/I6gwtjlNAO3a5zONU8CONi4ZEX8McQWaQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=permerror (sender ip is 151.1.184.193) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=asem.it; dmarc=fail (p=none sp=none pct=100) action=none header.from=asem.it; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=asem.it; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=U/J9Jxtg1ZhSR/t0TTLQkJ3qosQzIjuGrAoDsnxTPBc=; b=dHbMYGhaWIbOWkF2tHIdd3W8hwKAC3bDXf5uSTo2ZJUghNWDzRXp6yM9lz3lzsvVFLhpDLzoCiFvzxxBmtOL4CyZzm5Q3Jwlcb+DkT3duJK1O/4EcbW/9hQJxI5gXRxMHZl8mG0CFg2BX38GDcABs4+PoOAz/1EcW+l4Q/XrFLU= Received: from AM5PR0502CA0023.eurprd05.prod.outlook.com (2603:10a6:203:91::33) by DB8PR01MB6326.eurprd01.prod.exchangelabs.com (2603:10a6:10:159::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13; Tue, 28 Sep 2021 15:18:52 +0000 Received: from VE1EUR01FT046.eop-EUR01.prod.protection.outlook.com (2603:10a6:203:91:cafe::31) by AM5PR0502CA0023.outlook.office365.com (2603:10a6:203:91::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.13 via Frontend Transport; Tue, 28 Sep 2021 15:18:52 +0000 X-MS-Exchange-Authentication-Results: spf=permerror (sender IP is 151.1.184.193) smtp.mailfrom=asem.it; lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=fail action=none header.from=asem.it; Received-SPF: PermError (protection.outlook.com: domain of asem.it used an invalid SPF mechanism) Received: from asas054.asem.intra (151.1.184.193) by VE1EUR01FT046.mail.protection.outlook.com (10.152.3.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13 via Frontend Transport; Tue, 28 Sep 2021 15:18:51 +0000 Received: from flavio-x.asem.intra ([172.16.17.208]) by asas054.asem.intra with Microsoft SMTPSVC(10.0.14393.0); Tue, 28 Sep 2021 17:18:50 +0200 From: Flavio Suligoi <f.suligoi@asem.it> To: Vinod Koul <vkoul@kernel.org>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Fabio Estevam <festevam@gmail.com> Cc: Pengutronix Kernel Team <kernel@pengutronix.de>, NXP Linux Team <linux-imx@nxp.com>, dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Flavio Suligoi <f.suligoi@asem.it> Subject: [PATCH 1/4] dmaengine: imx-sdma: remove useless braces Date: Tue, 28 Sep 2021 17:18:30 +0200 Message-Id: <20210928151833.589843-1-f.suligoi@asem.it> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-OriginalArrivalTime: 28 Sep 2021 15:18:50.0907 (UTC) FILETIME=[2452CEB0:01D7B47C] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 087102f6-cc0a-4f50-a032-08d982934737 X-MS-TrafficTypeDiagnostic: DB8PR01MB6326: X-Microsoft-Antispam-PRVS: <DB8PR01MB6326933205A15012687E2AA2F9A89@DB8PR01MB6326.eurprd01.prod.exchangelabs.com> X-MS-Oob-TLC-OOBClassifiers: OLM:1728; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EZqWVi5jcRv8CoLshPHWL31MQMCcGiGyf7GU2EBqfDbZOieIJFHgJbwXtmaDmRtTTe7FTbIRl48T7GY4Uiv+zpB3whAI3ADa/+gfYu/+AI9eBOVDTtXWC1gb8s/sLjHeCaLxuoPyLrX5q5Xixk6Tf0DbtFNDMMXAxjXecmaLp6CPZ61SRno11NBxxvuHQ6WJ6XQ8pWZgw4TufBJgzENAEudNT0Wpl82Qw2B+P0uvYfsmG9VCQXzDBA5n5daG5dWDnN4uEyQ0367ZE2AnSza5YUaAMDF7PDbMsg+N3ObEC5SosbJKRDhBY3ifuQ2isu7zkGvm6liEdRbwe3BjnUJ5i502apB1FbcYLHoPTxP8kJ12lFTmV2bsg/wih67jVUXc3XytMKF4Rqy141cCAlQfOaAsGN2KR74GNs6GL3lZUTDwMfwvx4uLwztXchFJWB3Ze2FYmVHrAuyvzo6wIaNAlcIs7tm6SSUArOoym+fu4GXoxfCcrVzsB9UTMkU1rgD7fEqWrdAiWCHjj5xNWKylMDJI2Bx5MKZl7DNlGbqBpyUMtgD/js34aEMg3Ssvo77fM2cy2RQR3ekLWoTdM6BbSxz/U6l2R6zFSfMFNkfvgJVWYlfEeE80z9P/QcHwnZfQMZMkgRdDbuFqDU6s8XDYljzsRwqTXzf4BniJLlf4HZqkWYiJdFDRyoElxNIfZ2WoiOrF5Bfm30ar1fzw7dCRPDoWAp7CCwphkWK8tLvwSJ0= X-Forefront-Antispam-Report: CIP:151.1.184.193; CTRY:IT; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:asas054.asem.intra; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(46966006)(36840700001)(1076003)(36756003)(4744005)(336012)(26005)(70206006)(70586007)(36860700001)(186003)(6666004)(107886003)(54906003)(81166007)(86362001)(83380400001)(316002)(110136005)(2906002)(82310400003)(356005)(8936002)(8676002)(47076005)(2616005)(4326008)(5660300002)(508600001)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: asem.it X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Sep 2021 15:18:51.5107 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 087102f6-cc0a-4f50-a032-08d982934737 X-MS-Exchange-CrossTenant-Id: d0a766c6-7992-4344-a4a2-a467a7bb1ed2 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=d0a766c6-7992-4344-a4a2-a467a7bb1ed2; Ip=[151.1.184.193]; Helo=[asas054.asem.intra] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR01FT046.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR01MB6326 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210928_081858_662066_FA435B72 X-CRM114-Status: UNSURE ( 9.69 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 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+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
[1/4] dmaengine: imx-sdma: remove useless braces
|
expand
|
On 28-09-21, 17:18, Flavio Suligoi wrote:
> Braces {} are not necessary for single statement blocks.
Nice cleanup, well described and split patches!
Applied all, thanks
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index cacc725ca545..a58798fc3ff8 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -741,9 +741,8 @@ static int sdma_load_script(struct sdma_engine *sdma, void *buf, int size, unsigned long flags; buf_virt = dma_alloc_coherent(sdma->dev, size, &buf_phys, GFP_KERNEL); - if (!buf_virt) { + if (!buf_virt) return -ENOMEM; - } spin_lock_irqsave(&sdma->channel_0_lock, flags);
Braces {} are not necessary for single statement blocks. Signed-off-by: Flavio Suligoi <f.suligoi@asem.it> --- drivers/dma/imx-sdma.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)