From patchwork Wed May 17 18:33:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hamza Mahfooz X-Patchwork-Id: 95484 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1344627vqo; Wed, 17 May 2023 11:39:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5yljlRTTuZ8X0t05XybIkqV8k8AGOtoZ00kP7fk4rpQeyqURAak0G3gKvkW7ylt8eDKPty X-Received: by 2002:a17:903:64c:b0:1ac:3303:daf5 with SMTP id kh12-20020a170903064c00b001ac3303daf5mr41934804plb.27.1684348760047; Wed, 17 May 2023 11:39:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684348760; cv=pass; d=google.com; s=arc-20160816; b=pPmF4y8gS0q009imKYx8o8ckl7NbUOZkVNHBaJpCFqpMA8amDJL2inKY0sv/LBqTy0 ELLIe985zUCZbVe8dzPWM2s0nA7EWdNVWnh9DyZ5J6owRz+CF42D6r9JFEguqjJFmy5q L5a1Lew4L7T+Tjln0UJ4yTyeKIFBYxqITTrqvek0aGYVzwHxxWSXZBqTCeUTG52H4o6D a/lOKWDBf7Z1bTYMksr6unuslXyNeAQolwFIdW7vXHF92hkCKhgrIlUlAqMPNWkOkNbL D1ttTw/RbHzrw9tVKRQHxiWs8YmmGHIw8Yre41FEynXJdUTZAkdmiJNGsRbCKgR0c3N5 Qw9Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BRYH/uzNiOwE1sDt/LCmolvLy4Oaj0Zbqy2+rO2nD70=; b=mwr76Kr3aSf6MhiHetJ4iiJGniuJ0zovwJn8N1l5ln24reXhH6Bt7d3hxI4/rR0j01 3EsXWo4p5bTX/n6aiA/HnlXxBM39tkpeTeYWypJ/ZTBk0pJUfsTWgkQZp7h9w3DIbQAK 8wnslEzNsuhtTpW/J5r/oPoJc79ZxPF+nPacoccnSeFUGRdYeS7u8S7Pxu8qQbHncEz9 /5PA/s7qk0ZUkobjLVA5pYxf+XzYpuWinurU59pebFxv1CVjIYg8cdWEHJAb9UuLsgHT cRnqEHVoqdkk4bOXB3J7ce+bES32dIiVQ5VeaQuxMYJ3S1+e5aQqrXUEe+IYdgdyflwF Jq6A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=qD1ZhFuj; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u11-20020a17090341cb00b001ac36e5ec0esi12926559ple.299.2023.05.17.11.38.58; Wed, 17 May 2023 11:39:20 -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=@amd.com header.s=selector1 header.b=qD1ZhFuj; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229683AbjEQSe5 (ORCPT + 99 others); Wed, 17 May 2023 14:34:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229655AbjEQSe4 (ORCPT ); Wed, 17 May 2023 14:34:56 -0400 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2057.outbound.protection.outlook.com [40.107.237.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CA9361A1 for ; Wed, 17 May 2023 11:34:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aNGfdtzt0MFhxpoNnoBn1t2N2OKzzx6kZZ7ujswsUGpCgeYiP1kQ7l8KxkCtfKXY3Km3ISQ6AMkHyE8GB1dV6vFgEBS2xiQQNZUuaM+/drUtoI5vwpg66rmlxLu85nB7kTKycwjEx0+SSMVLCifgS+t+iSu7B3hqw993xAfwTNZ3SHBY+549trEYchcYlGibexnspP8ONxSuUTJnVpU64JKUITN6fSmSlqnfe9SngAiv1DjrTJ8SbzjO0hinz/isSeZj9Dh82mt90TNHjP8tkSXKF+PGj76IODc4U39KgQggSqjYvn/v7NDVzH/vTVDjY9VrZ8z10SlVyra0R8rU4Q== 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=BRYH/uzNiOwE1sDt/LCmolvLy4Oaj0Zbqy2+rO2nD70=; b=H3gCkG/9lhQX6cBqFvCmgobiGjYZ7RFeaDruVAjDWdQ0vEcTd42qhxelgLbV+Mp5PWF6fuKK/CCwAkU+ZrOqJTNSYiAe0fxWVT08utJPx8IyV9GdP5TKnOh55ulFkUJlHBc6fiqVTym8WakPQ6BCTHZQe9jg4CJA0j+asiM40A1Ya5cXxQQtQJ5PKa0oCnWMWCqSkhwLpfs1m0vpjCi7xUNs4gJniEjVTAFiXexuqGNnH4gzl0Xu/Xxy+y4Dqu0rzZidASGzlel/d+PkK+5ob6pkUWTJK9iEUM9pGQBlLivSIyyzkpErTL4Mq9VScQzzOSg2gp1aSb6aTaRkcvsTOw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.freedesktop.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BRYH/uzNiOwE1sDt/LCmolvLy4Oaj0Zbqy2+rO2nD70=; b=qD1ZhFuj5fQOmta/OKqIPS3yRPWBglAaajtRp3sqcuKj7z4PRRuUuUa2gUSuYWBIBeg/JUBZlVAkC9xx3G01IVF6eRogj4IV7VvzNMhp71PXGPLRq3b1TSmiSoPoXxHPX/JjxiXjNAj/oejkvvdv//3ggYMfrihs6OwfHVcoXjY= Received: from DM6PR07CA0038.namprd07.prod.outlook.com (2603:10b6:5:74::15) by MN2PR12MB4287.namprd12.prod.outlook.com (2603:10b6:208:1dd::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.17; Wed, 17 May 2023 18:34:49 +0000 Received: from DM6NAM11FT085.eop-nam11.prod.protection.outlook.com (2603:10b6:5:74:cafe::96) by DM6PR07CA0038.outlook.office365.com (2603:10b6:5:74::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.18 via Frontend Transport; Wed, 17 May 2023 18:34:49 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DM6NAM11FT085.mail.protection.outlook.com (10.13.172.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6411.18 via Frontend Transport; Wed, 17 May 2023 18:34:49 +0000 Received: from hamza-pc.localhost (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Wed, 17 May 2023 13:34:47 -0500 From: Hamza Mahfooz To: CC: Hamza Mahfooz , kernel test robot , Harry Wentland , Leo Li , "Rodrigo Siqueira" , Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Qingqing Zhuo , Aurabindo Pillai , "Hans de Goede" , Hersen Wu , Stylon Wang , Jun Lei , Leon Huang , Wenjing Liu , Mike Hsieh , pengfuyuan , Nasir Osman , , Subject: [PATCH 3/3] drm/amd/display: drop unused count variable in create_eml_sink() Date: Wed, 17 May 2023 14:33:47 -0400 Message-ID: <20230517183350.314082-3-hamza.mahfooz@amd.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230517183350.314082-1-hamza.mahfooz@amd.com> References: <20230517183350.314082-1-hamza.mahfooz@amd.com> MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT085:EE_|MN2PR12MB4287:EE_ X-MS-Office365-Filtering-Correlation-Id: 55980f43-ac8a-4b7e-3169-08db570565b5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WWKwejt24dkvk3jTOoYMU7TJh/hem0RNqx5naTLwlBv/iUF6N6SLgN96qQzn7UnICzLQMt8wV2ZTUtBrlE5+ExzbZ2HNQT5j7jFkJWxiXUMXjxZeRxQonpaQMjKksA2pxNBNqc8T8Mo8b0YF4QMcZKJhBynt73YnGSQ/Y/4GuQZ9LSLG+TaAFXg5FErT5j0YVFLbUc/a5ebhi4jlecpBy+EA6QYg07N5KaG5Tt7DOBXAqmg+KSpcQSqjisXvpXRpmd179p1tvpaFovA4EhfbJBiI/fteMj3hDWf+Y6IFixcrmrdbJMCROi+Y3a5ssTiaub3lyRa/anMSecBWXOVGSqy9tXwzm2sjCn7N+MC2c8c/5aSfyR/d86GWkA3vKIaAo18VMgb7ZDAOAckaXVtKzT0EV10y5JwbXev9HnzQEc/Yh8QzAPh95dvdNnYc8pPX4geVi3f0Ke0Oiw7tUNMHXbE7sbRJ0O8hKGyPksSF9C6gDbO+1IJsBlTrYIEsQY/BcuwDkUTSFJpc8g2VkF3ZTNCpfGfNHZDfP0J6Yq/YXU11JInAOpInlNYLDOzWZoMO8MsG3po9SS5lOJCMJJDGMK1u/OMa0GDHg8Y3D/5mTUN2caLnzRL/BVS+LNlDhWZNbvm83LuIcDUNSpyvzFu7JZKd4vMd6EHk3dIySH/cVjvFmRmTldaoPH/Hd/uuH4NhfA+IavhJQKTGrbXt2nn0k/14kl+tWNlzQ+3lybHdBWg/TZcXcBR01ukTlOYYWir4pJFhbwH/etOdzzAzJK+LknG/qsUaTwVIQKfnvpb5PPMkX+SaK2NY9WV0JK9Eymdr X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230028)(4636009)(346002)(39860400002)(376002)(396003)(136003)(451199021)(46966006)(36840700001)(40470700004)(70586007)(70206006)(5660300002)(8936002)(8676002)(54906003)(478600001)(6916009)(4326008)(316002)(41300700001)(40460700003)(36860700001)(81166007)(40480700001)(47076005)(426003)(336012)(83380400001)(2616005)(86362001)(82740400003)(82310400005)(356005)(44832011)(16526019)(36756003)(186003)(1076003)(26005)(2906002)(16060500005)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 May 2023 18:34:49.5102 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 55980f43-ac8a-4b7e-3169-08db570565b5 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT085.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4287 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766167685089338040?= X-GMAIL-MSGID: =?utf-8?q?1766167685089338040?= Since, we are only interested in having drm_edid_override_connector_update(), update the value of connector->edid_blob_ptr. We don't care about the return value of drm_edid_override_connector_update() here. So, drop count. Fixes: 068553e14f86 ("drm/amd/display: assign edid_blob_ptr with edid from debugfs") Reported-by: kernel test robot Signed-off-by: Hamza Mahfooz Reviewed-by: Rodrigo Siqueira --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 14b296e1d0f6..5a2d04f47276 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -6396,9 +6396,8 @@ static void create_eml_sink(struct amdgpu_dm_connector *aconnector) /* if connector->edid_override valid, pass * it to edid_override to edid_blob_ptr */ - int count; - count = drm_edid_override_connector_update(&aconnector->base); + drm_edid_override_connector_update(&aconnector->base); if (!aconnector->base.edid_blob_ptr) { DRM_ERROR("No EDID firmware found on connector: %s ,forcing to OFF!\n",