From patchwork Mon Nov 9 21:18:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 320981 Delivered-To: patch@linaro.org Received: by 2002:a17:906:d156:0:0:0:0 with SMTP id br22csp3000294ejb; Mon, 9 Nov 2020 13:19:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJzF/CjSIrrDURXfPeeItOabyY/lrfqL7fCgrsQedRuMV763rCKwMROjL1Re8ibcS1j1IxZK X-Received: by 2002:a17:90a:7089:: with SMTP id g9mr1238756pjk.47.1604956762049; Mon, 09 Nov 2020 13:19:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604956762; cv=none; d=google.com; s=arc-20160816; b=ttiYp8TqmqvOsEIwFWuUm9+hpqAdMVoSK6k4GQzL+/znbMiiuojOIfLD8sC7chFfQG Uggso3u+6rhZvuxfcTRIPMtOIeUGlO+LtPsLWIAVR49GIDBsSqgUxpanWwX215YbVU/+ OGLURfHt+C+TUamG7YAUmqNpImngXg1x/YOSuiyXs3gD9zpVR/Wr8+4nzS7ufVpBXNc5 rzYdire6RV+RW03lQG9tK7UW3MUUxIUAlk+J1WLBEKImzJx3OENUUdXVFenr73VR7ZrW iwnhISSXKQxRb2kAtVD9hXJu8mZsHKjY4LaO1dP4UVjfkuWgTfvpFDoiFqPmiOJBcPZx ynvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=80LNNT4qVS8hSxFjYeln82j5SJx40hHgOSSEDG7DXQ0=; b=YHFjdMOzaj275AgtC97XGbH9jY/rnYNDxHaeVbI2JzSGYcni8pAISgXeu0eQt8cKrA T8ngh4WSBCiEvbVgN8Uc9LxdwUwhJ3tvE0HGcV2vhobg+4e49YJ+r+IPfNn5Z0tjXBXa 1fBfOJrAwLMkELL3+FGPy4nZW59tPKKF9pjLPN7I9zecXDAc1kJZiEbZCw5ory04fKf3 0CM1XcjMR3vTG66bijKVtvjgxYBRcfVV08esKGCxrquBHP7yB/lwChAg38mGCrM35mhi OY4wyX6xhOFjSvKDZ+P660RrGfulR7cHVzV5xVuA04IYH8RMHXJxvG0J1Fril8UhnExr 3Miw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=vDRSOmaO; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id ig12si502235pjb.59.2020.11.09.13.19.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Nov 2020 13:19:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=vDRSOmaO; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1DD7589590; Mon, 9 Nov 2020 21:19:21 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by gabe.freedesktop.org (Postfix) with ESMTPS id 10CC289598 for ; Mon, 9 Nov 2020 21:19:20 +0000 (UTC) Received: by mail-wm1-x343.google.com with SMTP id t67so902273wmt.5 for ; Mon, 09 Nov 2020 13:19:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mNbwgos7EBbAiIS/whVqYV59kF6ty8MKTbhrWe3Hj/4=; b=vDRSOmaOWfnFuTXwEONPBcO8vJz7zF39LmqlgHPib6OIXViysSis7axMfLToI6uzcL fflPl+k/7ZFLIGyyXOLQ3TiIrfwGxSkGA9MmRO2uUcGtCt0kGjl+uBPJRp3aPomVX1BF EsHIQZXRDK9Vnv4zD/sgKAUuLnYw0kUHMXsav4ieFfUvp3ZnOj++Jot2LssQVDnBcsPx 39lCcPvgMs9bMyUsvFNk7r5g109XNQaut2J9n314ZUar9st0RyOSYygednECLaUvqshj UwCOwCaWkMWuHpYepBA4xCTKSRCE/Z6mWJww+6Zuk694xH4pxg0gQXodu1LbNfYithWA sLVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mNbwgos7EBbAiIS/whVqYV59kF6ty8MKTbhrWe3Hj/4=; b=dQeC2V31+6feyBQMFUPOFFjO+U12dU8+Ht5NHX5e0z9PDl+pqXSDep+LJCAlNWTV/g IlgGyUkByLrc8xqCMEm4TsLEAxzLYaCL1Q3uitCkDYYAetj0H5d97TDxjaAnC0t297mr NkNyHcELrtjlpE6ciVPDTbsmFWnU4zYaJ22HJliSI6hRbvctTAzkhlvf01FKdIQsqD/6 bv9+zO+fGW1Dxiktw/I38k+WdQ7Xay7kw5WdAVMfI/4JdF86nZ/DFLMEQiiPdmSapV6n h+ElEV1ruajKi9rWgcRiqbr8cY8l/dV5O8cx5uRcOt+OhCvjah3d9qmwplebIyEb0saA 2hsg== X-Gm-Message-State: AOAM531pzjHhO0yXLqMXRSRRD3cm+pmihKr5oJvzjmSXXskiCRGBmkuT 3SX6zAQ3mC/uvPtcrlesBjhY7g== X-Received: by 2002:a1c:9950:: with SMTP id b77mr1103869wme.123.1604956758642; Mon, 09 Nov 2020 13:19:18 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 71sm15170630wrm.20.2020.11.09.13.19.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Nov 2020 13:19:18 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 06/20] drm/radeon/radeon_connectors: Strip out set but unused variable 'ret' Date: Mon, 9 Nov 2020 21:18:41 +0000 Message-Id: <20201109211855.3340030-7-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201109211855.3340030-1-lee.jones@linaro.org> References: <20201109211855.3340030-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6?= =?utf-8?q?nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/radeon_connectors.c: In function ‘radeon_setup_mst_connector’: drivers/gpu/drm/radeon/radeon_connectors.c:2574:7: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/radeon/radeon_connectors.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c b/drivers/gpu/drm/radeon/radeon_connectors.c index e308344344425..607ad5620bd99 100644 --- a/drivers/gpu/drm/radeon/radeon_connectors.c +++ b/drivers/gpu/drm/radeon/radeon_connectors.c @@ -2571,13 +2571,11 @@ void radeon_setup_mst_connector(struct drm_device *dev) return; list_for_each_entry(connector, &dev->mode_config.connector_list, head) { - int ret; - radeon_connector = to_radeon_connector(connector); if (connector->connector_type != DRM_MODE_CONNECTOR_DisplayPort) continue; - ret = radeon_dp_mst_init(radeon_connector); + radeon_dp_mst_init(radeon_connector); } }