From patchwork Mon Oct 14 12:53:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 176243 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp4472329ill; Mon, 14 Oct 2019 05:53:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqyT8qGqS3BSb05Twr6sniDlb2EW70x3Vk4+oLj/oUQ348IUXFNjZSrYHshYdfeW2eCI8A7i X-Received: by 2002:a17:906:5381:: with SMTP id g1mr28287085ejo.159.1571057593090; Mon, 14 Oct 2019 05:53:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571057593; cv=none; d=google.com; s=arc-20160816; b=UXRC+YgMaMIW042Hx6FcHWqfZFskT/R9qgMTNi9QNEkB0oq2poBdo7socRaHL2zAMw eN4KVNkfCbd7X3qDlJy3xkZyMyRmijwtVvfHLpj/FlPAAjKU6NZXiUOTgoCtvp8Cv1TH zkU813KhLgtReHDTg7uGuul9ti1ohMPq3Z1OG3C3sq6MKqYCeD6X/YsH8U0pXyRed+F7 tdyxsZI8Nwp9nPwIy0i4XfrmXV9N2YpSojpqQ7f3X7e4xVhZMjFDD0wBTcQF7XhIuLIO MJsBRoTd3NbrWV27NP75glMDau848ugHKeOh0/lUDpx/do/a3dnotAjP2KQgwzD30iY9 3Epw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=VY1HJeXOWBTSxDIpEf1BQUQwWK9Qg2h3vXazbHlYNs8=; b=0FTffjIRzWY9pFze8E7zExUA1QWMnGeEjZF/t2YN1yACHk2pRng7kEUqSHdQaDMT8h rBaR1aFPTHsRVlmYpO1L2Q9m1CnMDsklz5L31/XNj5526jLm19nbqhRMIeVanPMEy/Pt DHbdfOUFJ4zATe2DCIoPnSCxO97gWACeOd6DULoEZXejm0/Ag21s499KBFaDZfrXcL4J e9l+KqQssCYmu0KYzlShBTO5hqr+6r5B3RJzZk8cxI5s6PSGyB0Xo3Sr71sQNeVgN2Nt l13ZeCpg+gP5bduiJil9f69rcN8k6w9wLq90rqhD+HloAMREKjWQzG/ySmKH7U64+lJz Gq3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S7wKPIdy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g7si11254862ejd.78.2019.10.14.05.53.12; Mon, 14 Oct 2019 05:53:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S7wKPIdy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731764AbfJNMxL (ORCPT + 10 others); Mon, 14 Oct 2019 08:53:11 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:42685 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731471AbfJNMxL (ORCPT ); Mon, 14 Oct 2019 08:53:11 -0400 Received: by mail-lj1-f194.google.com with SMTP id y23so16481176lje.9 for ; Mon, 14 Oct 2019 05:53:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VY1HJeXOWBTSxDIpEf1BQUQwWK9Qg2h3vXazbHlYNs8=; b=S7wKPIdyT6ici7ZYTf/lSrUqOiypj53THCy9xqoVLl2+oYnyF8hXL+jli9skZrXLPh EZf0a0DWqeSE2padGXd3BMjokHsjWKf8ekTeEYnkaBX49QaeU+Oomt/f3Rxtps9xhAXY zsvVvTPKTPfExH7oomu1w1xpAv/R5EyQ9N/D5jSgfKKnj9eeydyQv+h/erdcYzOtV5QA Z0y19YpoqfU/dASwNjVLToraMbFxd5VKkpskHeQkjUP0X4E1WNtkOB4nC5GVAu/t6Qk1 lDsh24E2W8HzJcMs3VMQSzo6MRdBMkl/OsGxTK+4HAfEVex7vzYS9UGXkesvsiZ5p4vA Kt+Q== 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:mime-version :content-transfer-encoding; bh=VY1HJeXOWBTSxDIpEf1BQUQwWK9Qg2h3vXazbHlYNs8=; b=c9yAal6ybUlf4HPMWNrGszjn2hmBJpldnF717VFEBDcAQRiPaglEIYoFPBVpKw+vSI AZtrHyxqFjaHSPjPEXkphHR0vbKHLmgzkSvfbu3ckKSvziM6BU/iHomYsg4TdY/hFo8M yb7DSPDKF1W+ut41OWGO5FqgUkZmKEFL1IGggUs7XL89GjiR6C1UqkK8wK8qQuz0ULg4 FRf7qguInBN0n5YfOY4bX/VNCrQd17GBGLRfL67GDvp4ouJgg+CEHIg/uz3Mu/6uEJos 488d2aCYmRbQMVSKhqJOjFVLAQvegixBAXmPWNEXnBXyF51SKf4uJZ0Wo6dItfcLEbQW oXoQ== X-Gm-Message-State: APjAAAUalyDPuPhaC33XJfJfbOtTnSMjGJDnwMlOraPpAVons9G0X2td wOdvAyeIHxukveGjmmjwKNZZEg== X-Received: by 2002:a2e:9205:: with SMTP id k5mr11807766ljg.202.1571057589040; Mon, 14 Oct 2019 05:53:09 -0700 (PDT) Received: from localhost (c-413e70d5.07-21-73746f28.bbcust.telenor.se. [213.112.62.65]) by smtp.gmail.com with ESMTPSA id c16sm4296623lfj.8.2019.10.14.05.53.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Oct 2019 05:53:08 -0700 (PDT) From: Anders Roxell To: maarten.lankhorst@linux.intel.com, mripard@kernel.org, sean@poorly.run, airlied@linux.ie, daniel.vetter@ffwll.ch Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] drm/dp-mst: remove unused variable Date: Mon, 14 Oct 2019 14:53:02 +0200 Message-Id: <20191014125302.21479-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The variable 'dev' is no longer used and the compiler rightly complains that it should be removed. ../drivers/gpu/drm/drm_dp_mst_topology.c: In function ‘drm_atomic_get_mst_topology_state’: ../drivers/gpu/drm/drm_dp_mst_topology.c:4187:21: warning: unused variable ‘dev’ [-Wunused-variable] struct drm_device *dev = mgr->dev; ^~~ Rework to remove the unused variable. Fixes: 83fa9842afe7 ("drm/dp-mst: Drop connection_mutex check") Signed-off-by: Anders Roxell --- drivers/gpu/drm/drm_dp_mst_topology.c | 2 -- 1 file changed, 2 deletions(-) -- 2.20.1 diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c b/drivers/gpu/drm/drm_dp_mst_topology.c index 9364e4f42975..9cccc5e63309 100644 --- a/drivers/gpu/drm/drm_dp_mst_topology.c +++ b/drivers/gpu/drm/drm_dp_mst_topology.c @@ -4184,8 +4184,6 @@ EXPORT_SYMBOL(drm_dp_mst_topology_state_funcs); struct drm_dp_mst_topology_state *drm_atomic_get_mst_topology_state(struct drm_atomic_state *state, struct drm_dp_mst_topology_mgr *mgr) { - struct drm_device *dev = mgr->dev; - return to_dp_mst_topology_state(drm_atomic_get_private_obj_state(state, &mgr->base)); } EXPORT_SYMBOL(drm_atomic_get_mst_topology_state);