Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3992196iog; Tue, 21 Jun 2022 09:51:34 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ta9yd1R5UlleBpKogAh7mP3S1kxdiLpSNNx7VOpxHjM5doxug160/Ny86UHD3CZBgrKxbD X-Received: by 2002:a17:902:8488:b0:167:9151:a8db with SMTP id c8-20020a170902848800b001679151a8dbmr29735552plo.2.1655830294153; Tue, 21 Jun 2022 09:51:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1655830294; cv=pass; d=google.com; s=arc-20160816; b=rYLH7udQ0FgwAdWif8M1MpzOae0kSwXvVj/meLgrQ6Um9B/ZCyz1iasImuPPOc6/9Y GG05WY1g1juvU6LyAiWNd++gXYglBmqL3FATbSdut4sWNaNTrIQxlPYzRHnEi8kyT/zU hJqDt4MRFnUVb0qdx3LR4lKt1cHkGeVPAHaCm+VyDvMz7nJm6g626IMIArx1lOLMFKpG bqkcEla+CPz51eBlP1Y3rynU2+3kMZ0RVRPXMvOHf7+MIdHkt4DV041Sq76CY44HcHIh s3bQg43/lHSkri5zZQS6x6Ui5zbVYIVP9taKJZn/dHuuuqyw4eGWmRbBMf12w3Lf6gMW r7xQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Pf2MnEJp4dnbpr+pHCw2orzJK7oLI9VLqvaCJ1Pk3hY=; b=h8OxkakH0Yocu4vOuByXESo+JGsbVaHSGDjjANx7LGX+jZ+QMCA2a8mNMrNp0a4mVz ilSeJT+sjVORERcMZnvGA2XL+2osuB1QK4wWemGlS9IVNc9Pg5Oqn5FbDbcWgjO57Jfn PwAi340PH9fUBpESwkJTjmsc/XJh1jydQsK2LmN1u04T8KPDEAsD/ETUWCL/6IRk+2ts COefVP8glUxXTA7lNOfQ2j4rl/bnR6hcsYwEn/Y3XGUFI0ULW/sf0zkciY3WmjMM5Zi/ IZiFC4D8MEgp9lLF51v6jhbaqi8uzeyUtVEaylMfIlo6dwIOV4MO23z0uXcP5SlTh7Sb Ksgw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@hotmail.com header.s=selector1 header.b=NMIOtFxo; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hotmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a20-20020a170903101400b0016a2c28da00si5410996plb.124.2022.06.21.09.51.21; Tue, 21 Jun 2022 09:51:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@hotmail.com header.s=selector1 header.b=NMIOtFxo; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353005AbiFUQox (ORCPT + 99 others); Tue, 21 Jun 2022 12:44:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352611AbiFUQow (ORCPT ); Tue, 21 Jun 2022 12:44:52 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-oln040092074074.outbound.protection.outlook.com [40.92.74.74]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2D8427147 for ; Tue, 21 Jun 2022 09:44:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WzQysY0cwC2bRkKCBLoXA6roEItdgNm05xDQuw0n6wlG8PenwNmrmvyh8WzST973HoBvfOewu3qyxpTN7bjyr6cQN+qCZySH6ZurkcjB2iXK/EzkmoE/e6LovJGMd9kmMWL5SbEaNBfvhKD8wL0pcf4aUnHWP8FzrQacU9GXlW/lN8wrCwCIU2w6qMvXwR1/LhwjOy4bOKaz7JNI2fUENbsSonkJycu34P+MCvC+0bVgyb4aTzeBiq2SN9bXW9b8HCj2B49mH9F0Z/kizeTvWowKqZ2JI5f2jBKrOXMsdOOE5wNheRBKkMJxuFNqxGvGPY/yYQD7j/eLWYpeNyAReg== 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:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Pf2MnEJp4dnbpr+pHCw2orzJK7oLI9VLqvaCJ1Pk3hY=; b=TvQd29n87hLavVYLzX+Wu0JugeygeaimBjHGehBmtXXGnJFYuDN5+PGQTrG3NSz7m8w3XYeRIkjksgXz+w6XDr5OdMOJxxmHQ2x46+qVzy5TzdjLXE8sJ4KSOJcCsSVNOMWn4FWReRnmooyhZsqY0+iG6bZ8Fhi051h3rQ2p2p2VxVHT8qO8Ywl386tHShIyM62a6wr0zrBDSUWokIBpVfwzYyVoMPtIdekv0Tgx80iVG9GW+aWAjWoAS21alPA8ADbBWFgRjl7IvGDRO+QVTVENsAINP3FZKreqhEZAoCv0RIlkzQXNK4/RBBhO6KKeoA7+oGO9A9a1DqZ6n/vXNg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Pf2MnEJp4dnbpr+pHCw2orzJK7oLI9VLqvaCJ1Pk3hY=; b=NMIOtFxochKfTinvhKdBX1Qudxfq5HDSoOeoTXzr6Xy0R0O+0FqooJPZXwanpDmfeGIykGMABYdnjKQ3radjTa8iqxd2F+pvU+RY9BPr0WWvloRwqG8YJkyid0QNiLMttCBqrKkpindQUbHXcFkw2+K7KdP5kcKd/niKwn/xWAf3RbSi2sjE2dZdcYqt23EElExJhXY4dQ+KtcC7nkGRzHQK6UY4YqCaNvEdJOz0LfWvgtp8NVmcnofndFur/6XV+pFvP+cxTLpvWFihaXFMX8tk5dasdSb/yN6gRz/tOb72Kwt1IzPk+OAANXGHcFahqq/128jbf0t8radgqm1lfA== Received: from PA4P189MB1421.EURP189.PROD.OUTLOOK.COM (2603:10a6:102:c2::10) by AM9P189MB1713.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:301::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.14; Tue, 21 Jun 2022 16:44:49 +0000 Received: from PA4P189MB1421.EURP189.PROD.OUTLOOK.COM ([fe80::5ae:1a99:f05c:b75d]) by PA4P189MB1421.EURP189.PROD.OUTLOOK.COM ([fe80::5ae:1a99:f05c:b75d%6]) with mapi id 15.20.5353.022; Tue, 21 Jun 2022 16:44:49 +0000 From: Saud Farooqui To: maxime@cerno.tech Cc: jernej.skrabec@gmail.com, samuel@sholland.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, wens@csie.org, daniel@ffwll.ch, Saud Farooqui Subject: [PATCH v1] drm/sun4i: Return from the function in error condition Date: Tue, 21 Jun 2022 21:44:27 +0500 Message-ID: X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220609142253.7aad4jlaoahqkmy7@houat> References: <20220609142253.7aad4jlaoahqkmy7@houat> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-TMN: [MFwVIXPqtv+sR3QUZa7gsO1aTgSPGvIZ] X-ClientProxiedBy: DXXP273CA0023.AREP273.PROD.OUTLOOK.COM (2603:1086:300:2::35) To PA4P189MB1421.EURP189.PROD.OUTLOOK.COM (2603:10a6:102:c2::10) X-Microsoft-Original-Message-ID: <20220621164427.30669-1-farooqui_saud@hotmail.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 335af846-5e3e-418b-f96e-08da53a55b09 X-MS-Exchange-SLBlob-MailProps: Zv/SX2iM+5VErZYGRkItsGyxMAx1p7VJqBx0HgbQcUE/f1G92z7gs81cgHfHAlFg9z7pHE2cEgXX/XHvd0oqUD+SCqBgnfxpm2ij/V91po+Gy5V1LJPmQWQllzVNw5ptYLw4WghipNADcUy5Gz/onyikkRidsEWPA/zlE7eHlZAO/edTlH5WXc5MRIKllMulC00o1u0RJd+dU9Da66C4EASgnIEzcFFc2Ahib+y5ISobST/oEgxvGWx8ncLoQP/7raid64SzTX5qmhYB9KtGaILmVjI3u8a44Nhogr6xZqkkFR+OfbUvIyl1VYqSXRAl0jniUWPEzEgtXvRxBWzjB17u1cOiQtqztkJqsg1JQ9ZAYSBC5Li50NjjpEB/9DpF5W7+/MFbiNTZ/Q7qG5OjIXzuJJTEBRELcvsMAsEM38nEYJrWp5s4bDZMk4cbQ6xQ/0+jj8fGKfmha4VqUASxEshFN6Wi458KhZL3BcfCgRlsdlyWKxGdFOaWfxYpcHA4xvqAh0Z8FOJ4+jxUF2iuXkw/4swb+xeX4KK/u7Q4MbZB07Sa1v4uwlR6T8JNkQmTNmDDU5YmIZN+OCjHPzdZP9CKo5Nr1cQ8Ac9vGFXmvSaP+hpnbXP1/LENdwGlt/Qb4nRSbpwTkFMo4Q09Kp/GpIG7wqBS/4AUx0d1W5MMtRwpJYIruoQjY/mbBvO90LwThBOC/TvGh+Y= X-MS-TrafficTypeDiagnostic: AM9P189MB1713:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: m0hiXvWxAw4UGfAPg0kbq9AVWOTr21EgA/CRL0JX52gN7WjUn7uw3sObN6Vwr2zNervJJLA5vzfnWxuJNcFK57yY9jResnGsxEZHZEznFn9JbhS5KPNanRKbEubcatmkiQRtUR6g/7Wu9TQO8KSes5dz+WMSkIj5H89KNApeZNkPwIclKX6UoqqQ72N+YSOv7ludaTwnUdTBgrZ117A38RoOUMlxPJK0fHwoc9WjzlCN66kjmyBABb15JAiGI1YI1YzHjLqPyPTdQVVuuaZCLlKvu7zwwc4rZcvRU6Iop0qwyI21uQxkwJxYcCzkT+Movwlwd8K+5nkyTjQc0XnlcT8ApuQJyOZAoEiegm+ZfupAQGwXc6SNec/lPuUF7b2rtQP3uKn7pqMiqnRpObkPXTKcSWJtA/BNpAkqamUQ0v6/lnAs5i3Mr2dFPnY1Eh3Ktw5L2DIuOCNiaW3o/5oHOEfgMMhWe6Yf7SoMsx94aTSLKDVUdtoF88FW7q+lwkpgDL/yoArlIDnXN6EG7jVd2MxOki3axb8cSWJntg1krx0mHZ9pIvUilQBYwzuiFhW6h9u0XDJrmIZzdT57cRJPfw== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?reFncdDy8L/EeInU81V85KRpWRcFHL811P1ZzbiZDwGcWJaffLHBJ9oQX2NH?= =?us-ascii?Q?BjNkdnwN3yoG+jNDAW1+3CdFyfCkQu4q9yjn63akMHCbzoJ+kURZJGlZDboe?= =?us-ascii?Q?zeSmpq3uPSb2P1cZhi5bImQ/E6qtUumxgvA6T+TnNRuRAgZ6bc71ciF3Fbqp?= =?us-ascii?Q?EuQZmchpckShE213R9G1PHVKXmoswfaimMlB0xpzEnSxYXAJPRF4QtdJTZKQ?= =?us-ascii?Q?TYOpS+huWR1ufqVu1K69DUTCie0bdtKQWPBrl3O1Y7yMauj/ZhfAfphkw6wD?= =?us-ascii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IpyLVmgD/JN/YyyEDd9n0LQ4RRATYT?= =?us-ascii?Q?yJ2qHPYTt8v8dBCSBaA74yVN1ymv33eEUakgpQzoOuCZ2Hbl6SHNc5sUJbW4?= =?us-ascii?Q?0iVONtN94PvgPkSQWfMy3gpnZf9VQytFYubYOxSICP7Ej0QnhpIjbk6bnopu?= =?us-ascii?Q?iWddLLqKm4nn0o4TnVsGFWkElRRmCw+LELmMugavQkCSZNo9Kddg4+ut3Qcy?= =?us-ascii?Q?mzd/PZgGLMX+vddCR3tvKpWb8Ufhtio0IsmZddED8dytIfRYkYhSHLbE2ZwR?= =?us-ascii?Q?SMA2Tth90yw/DOdksIkRi3z3jk69W6w0?= X-OriginatorOrg: sct-15-20-4734-24-msonline-outlook-c54b5.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 335af846-5e3e-418b-f96e-08da53a55b09 X-MS-Exchange-CrossTenant-AuthSource: PA4P189MB1421.EURP189.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2022 16:44:49.1872 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9P189MB1713 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Added return statement in sun4i_layer_format_mod_supported() in case of error. Signed-off-by: Saud Farooqui --- drivers/gpu/drm/sun4i/sun4i_layer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/sun4i/sun4i_layer.c b/drivers/gpu/drm/sun4i/sun4i_layer.c index 6d43080791a0..85fb9e800ddf 100644 --- a/drivers/gpu/drm/sun4i/sun4i_layer.c +++ b/drivers/gpu/drm/sun4i/sun4i_layer.c @@ -117,7 +117,7 @@ static bool sun4i_layer_format_mod_supported(struct drm_plane *plane, struct sun4i_layer *layer = plane_to_sun4i_layer(plane); if (IS_ERR_OR_NULL(layer->backend->frontend)) - sun4i_backend_format_is_supported(format, modifier); + return sun4i_backend_format_is_supported(format, modifier); return sun4i_backend_format_is_supported(format, modifier) || sun4i_frontend_format_is_supported(format, modifier); -- 2.25.1