Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1785671rdb; Thu, 7 Dec 2023 08:43:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IFAg+htza5y7S/51cJbLr24qKedVSNm1M+uFex8zHYKTlwmjge5HQDxnS95n8GykgKqgMZT X-Received: by 2002:a17:902:8207:b0:1d0:6ffe:1e6f with SMTP id x7-20020a170902820700b001d06ffe1e6fmr2268712pln.82.1701967381979; Thu, 07 Dec 2023 08:43:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701967381; cv=pass; d=google.com; s=arc-20160816; b=mXnDes/r+WWKVirWgVln1US/Kwuc/pxZ6TD4Z90DYtK2LN7csAnK6EgLrqlkdoSXFt rS2hDxvuWgQrvHg9edfj6Ztga+siZfz34c6TUOuFhXNgON2ORtHYQlW1kFDCbK7jmcu7 jk0NGwefaLGL2StPODJvnAS7sHZiEuzu+lr5YFsiyGjbfMypqVSL+5ia4f8rSxhISnar 1GanU2H//QZ69hrX0wHP3HvrHQEm/pdK3/xuLyXOSCymcSU9pPPgM/t5W/VwveCICMrt F3JYJB/FXiqGT5tzMgXgvrYEZqzKpc6ZfZgttQCMf3JP4yMSerg1lgnxzqKBtUNSzMvr R8Kw== 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 :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=Ov8K7h+3jWlY2h9GGyRghqz7j3x1HPg2JfqLj3bkmDQ=; fh=Oc+V+EnEfNfRTpoIVLdXpRqTRPoiLtHK9PQ6Wed0AfM=; b=PuXN7eg4mOvX/pwE3fEoOrkd3VcdBcFos7lCVx+79R5ZH1CXPuW0gS1PZQRWyUB6A0 w13c1Ry4x9x7JHTgnE4nb+rJcafREkG9lrC1MYYN2hMqpTW54ih5Lp+2jDLSedce8jEl dkm+/AWR2ubDMPPjpnhwA2Z8yMwAquU7TfNryt2Ek5HuCAFXjFIQsv4Qbz0UQA2X2Z6r 1G9nFH79bDst962QFsXl5vnKDfW3G8kiz3YsJB9cnNT+zqLyj6G6sSmBgXdKDAfJKrPw XyNP8nj/TO2EUzamHwaZBxtzpypdhyBXrQOlv6lhg2vwEa9LzUxhVUfJChl6NUWjOVbF F7Jg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mysnt.onmicrosoft.com header.s=selector2-mysnt-onmicrosoft-com header.b=f5OE255Y; arc=pass (i=1 spf=pass spfdomain=kontron.de dkim=pass dkdomain=kontron.de dmarc=pass fromdomain=kontron.de); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id k1-20020a632401000000b005c66e60900csi1385067pgk.239.2023.12.07.08.43.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 08:43:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@mysnt.onmicrosoft.com header.s=selector2-mysnt-onmicrosoft-com header.b=f5OE255Y; arc=pass (i=1 spf=pass spfdomain=kontron.de dkim=pass dkdomain=kontron.de dmarc=pass fromdomain=kontron.de); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id A3A0F8031034; Thu, 7 Dec 2023 08:42:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232519AbjLGQmo (ORCPT + 99 others); Thu, 7 Dec 2023 11:42:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbjLGQmn (ORCPT ); Thu, 7 Dec 2023 11:42:43 -0500 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2109.outbound.protection.outlook.com [40.107.20.109]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9A2D12E for ; Thu, 7 Dec 2023 08:42:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OJfe16NHYwqiJVmykGfDrNruAW5HGy0TPLr4AaNKOXA2XdJlMhqR/ENtC4qkVexSTU3PnsHSxdz5sTdrC26W3S47dQXNSPu4E/d7yE9jkHzynaxNwSWKZyCA/BlXAJWS4/tRElNWEND+mGaODcuJVRBIkUoweoSkf6W6mQlR6mXzmbcOSrZL0hNA1A/gjRi97wGSzm3HHCs3k0ZG9nDNwvi/2BS5+8VdDwES0ryOCBmvpQSWrpkAVl1E+2aXfgCuN+khtLQZ0rl7GyOeX+6tz5NiM4vhiM6Ql/INW6tpJTtscgFoYrnO3+f5ngPucLcWBIY/HL+kAuk+q063NA05Iw== 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=Ov8K7h+3jWlY2h9GGyRghqz7j3x1HPg2JfqLj3bkmDQ=; b=MLQL4Yeq6stw9GzzyWLHHXvn1xw7eMoI56H7g7CPvtnq0sGNiyrw6mR0DT96dR7G/kLai+9t0OXlZxrbOmZ7+Xv7gns8R6dxXoDKY9zX66jLm0LSmvkesWh9JT7j2j/RnRapk7BVpmQUea1U0xjhU0TGQuUQnc8AaJVJ3sSFkKplaz0DRUI1gnt2j0rkuh66GQiDDbGDBhlP+F6RVp3avmjM1XRBouv6EieHTTaVToXrkCyCcUTOxbMsq1mNzETPGyHWj+L1cooOwLtAprSNlUFHdO/n4pZ1QUE5qdry02RUYsHXraaWAkSEN1ToTso7FwwV66y54JzCmo5I5uBrwA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=kontron.de; dmarc=pass action=none header.from=kontron.de; dkim=pass header.d=kontron.de; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mysnt.onmicrosoft.com; s=selector2-mysnt-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ov8K7h+3jWlY2h9GGyRghqz7j3x1HPg2JfqLj3bkmDQ=; b=f5OE255YNQ9x0FbRbrE6bAcKyqQGXlYgLnFxg9JjYUXhq40jc0g0hQgdWiJs4r4+6qjwQ7XbBvGvdnEDHdE4nmAq/tVtTF6Dzi1gXpcGK8XFa+HAv9xybdCcPySjXlt6ppN3m9d0hZICGFRklhzgdx9jN3Jo2lDFbIqNmL4B1wE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=kontron.de; Received: from PA4PR10MB5681.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:263::10) by AM8PR10MB4100.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:1eb::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.25; Thu, 7 Dec 2023 16:42:46 +0000 Received: from PA4PR10MB5681.EURPRD10.PROD.OUTLOOK.COM ([fe80::27ba:9922:8d12:7b3d]) by PA4PR10MB5681.EURPRD10.PROD.OUTLOOK.COM ([fe80::27ba:9922:8d12:7b3d%5]) with mapi id 15.20.7068.025; Thu, 7 Dec 2023 16:42:46 +0000 Message-ID: <77ee045d-e5e0-4157-ae0d-cd8320a33eb3@kontron.de> Date: Thu, 7 Dec 2023 17:42:43 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] drm/bridge: samsung-dsim: check the return value only if necessary Content-Language: en-US, de-DE To: Dario Binacchi , linux-kernel@vger.kernel.org Cc: Maxime Ripard , Neil Armstrong , Robert Foss , Andrzej Hajda , Jonas Karlman , Thomas Zimmermann , dri-devel@lists.freedesktop.org, Jernej Skrabec , Jagan Teki , Marek Szyprowski , Laurent Pinchart References: <20231207161056.183442-1-dario.binacchi@amarulasolutions.com> From: Frieder Schrempf In-Reply-To: <20231207161056.183442-1-dario.binacchi@amarulasolutions.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR4P281CA0235.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:e9::6) To PA4PR10MB5681.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:263::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR10MB5681:EE_|AM8PR10MB4100:EE_ X-MS-Office365-Filtering-Correlation-Id: 1d32a8ff-a28a-4509-6b42-08dbf7438ab6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 40S+mBsmjynW5dIosW/Bj88t75rI9aMZK2y60W2kgbpYRnrBkFTftZiDR4TV0Xkis8UdlHK/LDAIZYUfLn5J1bo4o1WCT6q7q4C8lK1JRQ8edGQ2UZl0kn5Vat7XOXJJ7TsvhrPZxnRGuL49jFRJ3KPKF1YhVVSiFdXzvF0YYMunlEzTXDsKO2/DyD9F2/AiHI/ayKLSzkqpsueUchZV/bks+6pguAgI7maBCfN49ro4yiXAOSk+nuY+NgJr4IRxu9PgR9TOi6O8hiaaJBfgbS7lKirBxMXdVOJqkJgjEIUKGZd31aMYUPCdGL/GYDkUbUPeA/Q8q4DA8psbtJtOXsqaziHD68t6FZtTJT94HZZItFassnBYJL/Sfli28RhqUXRvQdWoAV1n+rIKdiMJMZcuxav0rYEXGAp66A5dHnKdcMGIhs4dMLGLK298Pt/Y4k9aDB9GPz7XRvf2OSEgX3+RRIYhRbgotTu5Ck9VQ1f9T7EQHOS+alBIS5MwKTP4Kq8qOtZ5OI7ZnTiv9JGiY0tN/2/0eN7L1Pr+QsQ7ekXN50caho2tuv03Vrtw7IHFfYG0/Q0UXOWux65H102g+hzV/xbSCBW9BJS3rTHEZymTC17zfzZmtiUA8T1+U1BT8NB97Z0ITFl7+RuBCgpphQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4PR10MB5681.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230031)(366004)(376002)(39860400002)(396003)(346002)(136003)(230922051799003)(451199024)(64100799003)(186009)(1800799012)(2616005)(6512007)(83380400001)(26005)(478600001)(66556008)(66946007)(66476007)(316002)(54906003)(6486002)(6506007)(53546011)(5660300002)(6666004)(44832011)(38100700002)(7416002)(2906002)(31686004)(36756003)(41300700001)(8936002)(4326008)(8676002)(31696002)(86362001)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?eGNzQS9TQlZTbmZEbEh3WVM4dHJvbnZDQVkzOFZlazZmeHMyZDdib005L25h?= =?utf-8?B?RmF6czVmMXpUT2FhcmdhOVhGT2hIQnBuZXh6VUpvcGR1N3F4eVFxcEI4WVN5?= =?utf-8?B?Sm10UEl3cCs3NldEV2I5RTkrcEhDOFdLVHdwcnBhNlJKc0s0QiszVXFhbisv?= =?utf-8?B?WlVqdXJjalJpcUpKblNYTGtRQ2dqM25neEswY1BiWXhaa3Z2N1dVMTR3T1lO?= =?utf-8?B?aEQ0VE5VQ1hYUTYxeXdV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?Q040cU82MnlXYjZ0Rk44VFVLcEZVV2h5K2VYbVJ6TEdKQ1pkT3UwczIrS2dV?= =?utf-8?B?ZUV0bjd5ZlZ1bUdxZGhMOXF2VHc0bERrS3cvV1ArZVhEK1hOdmRweXlGa3hZ?= =?utf-8?B?a0E9PQ==?= X-OriginatorOrg: kontron.de X-MS-Exchange-CrossTenant-Network-Message-Id: 1d32a8ff-a28a-4509-6b42-08dbf7438ab6 X-MS-Exchange-CrossTenant-AuthSource: PA4PR10MB5681.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2023 16:42:46.6310 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8c9d3c97-3fd9-41c8-a2b1-646f3942daf1 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Ad1cJH3Zi3AwZpdgQzva2bKRRpgnJnkMkftXd39wTmiOIoAwPvoE1XGtynGCCVoWTJy5dQ/aoUqY0ZuN/58tvIpym7gtPUJ13cWkHjshiD8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR10MB4100 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 07 Dec 2023 08:42:59 -0800 (PST) On 07.12.23 17:10, Dario Binacchi wrote: > It was useless to check again the "ret" variable if the function > register_host() was not called. > > Signed-off-by: Dario Binacchi Reviewed-by: Frieder Schrempf > --- > > drivers/gpu/drm/bridge/samsung-dsim.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/bridge/samsung-dsim.c b/drivers/gpu/drm/bridge/samsung-dsim.c > index be5914caa17d..98cd589e4427 100644 > --- a/drivers/gpu/drm/bridge/samsung-dsim.c > +++ b/drivers/gpu/drm/bridge/samsung-dsim.c > @@ -2020,11 +2020,11 @@ int samsung_dsim_probe(struct platform_device *pdev) > else > dsi->bridge.timings = &samsung_dsim_bridge_timings_de_high; > > - if (dsi->plat_data->host_ops && dsi->plat_data->host_ops->register_host) > + if (dsi->plat_data->host_ops && dsi->plat_data->host_ops->register_host) { > ret = dsi->plat_data->host_ops->register_host(dsi); > - > - if (ret) > - goto err_disable_runtime; > + if (ret) > + goto err_disable_runtime; > + } > > return 0; >