Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4925177ybp; Mon, 14 Oct 2019 12:17:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqz84nsJRxZiEQHoWMT8r7ZWmWFXsJ8nsMtzbVVlmNoWkHNu6fr0bN5H37GLxTa6HchW/6xy X-Received: by 2002:a17:906:3593:: with SMTP id o19mr30109262ejb.61.1571080666763; Mon, 14 Oct 2019 12:17:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571080666; cv=none; d=google.com; s=arc-20160816; b=F4mjxf2sZoZN6lvDYrUZVCYlAmQOAKaWm68EcaMzN1lYy8qiAJdU8PVTbF5V4xrVHH axdTUglALQw5oXUWRaKXl6bzT+n4LAGyZ8Z4i1ENSI4rAtX1t0DXqT6wHWOZYjvxejyV 4epRB5LTLDT19u61wNrTDwRUM5GRf7tg83PWy0Wa7pvGluSIb4Z5+xrfBHe3YfHowyQ6 /e2gcPLcTVPo7JdQVdTWOiCr8HCQyje9dXEWC6wpy4KKuXzXSB+FSZWhHOp3Lomz9bry GkvmxjJ6x4DCc7AuxSXS/tDVGHua+b5eB2VfuTItMbTMNbH4cD6Q7Da+LosbnXHlBEx3 zsSg== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=9bItvDSfbUsGhJswtzc99Hv7SGEwqL2WVtPMge+nuj8=; b=dSbGUTnhmbhmTsiQ25//thDvHbCL5qOxgFJA1wYVCcZWqc20dF8gdPjahCIPlfjv+f v1sHucufSi1n25quTkuXG/CQvaKGizaXgz2T2rCaoNeYxto/Th2EVHPSQ+8OQGmE/+ly 3TG/nYQHmPOaDTHXEAdFaB3CWrTeKe+kL2KWUENhwNB4oGY1q4wT6Vs+aCnswuqFFuv6 aCHvcuxkwjLcN0cQ5o90eT3diBc6SmjJ/Yb/qLeOh65oDxRN6i0RpVjamjYxM39DayTc HNAmJghi4CXn7I21mLE97xqEOcuj9i4sFMosCUU1Na6Hgkl6QvxecfOrx6TS7nWpoWks 7vXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@poorly.run header.s=google header.b=ZdR7ZoWp; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e47si13861139ede.325.2019.10.14.12.17.23; Mon, 14 Oct 2019 12:17:46 -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=@poorly.run header.s=google header.b=ZdR7ZoWp; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388515AbfJNRYx (ORCPT + 99 others); Mon, 14 Oct 2019 13:24:53 -0400 Received: from mail-yb1-f194.google.com ([209.85.219.194]:36438 "EHLO mail-yb1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387724AbfJNRYx (ORCPT ); Mon, 14 Oct 2019 13:24:53 -0400 Received: by mail-yb1-f194.google.com with SMTP id t4so2992696ybk.3 for ; Mon, 14 Oct 2019 10:24:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poorly.run; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=9bItvDSfbUsGhJswtzc99Hv7SGEwqL2WVtPMge+nuj8=; b=ZdR7ZoWpTjUK/j/uIvcYxf8AsCcxUN5J75ACgNQc+j+DUc6RjjZSMYsGtv9DWU1tu+ lMQ9QGm9fH8BnO1gvS5egsNQgkrYm16hoNSRbAxYmrK/k6aCUYBw0msI/NEVNAUQhI51 nBsK7ZayQ4iZgYNy9foFBnwqOVPfMhAoKPnLGmSCz7qNtQLojlfZ8rNA3eXiE56WahVE qf+vNcHJ5BiiytaxK+cwUrdRvsbLr0zRQOWVEFpA0E9GEn6UxrMipdUfHzzfQYmKwF2U FmstD00eybdMC+4+nSNwloJ8OlNmWtonMauOhCToYkn2Ogct4DHlwPTCjpFHE676KaF8 jgGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=9bItvDSfbUsGhJswtzc99Hv7SGEwqL2WVtPMge+nuj8=; b=PhBY6eV84YWuP1pXsepdxqzgSDIHs2r1fFRKFrMmLyYBs4Hjr9RogpZJ31cLku1i8V iptdAgitxiEwo+IaM9CRv3KwfF6y+t2KNGd53hmej1GvxGHTnSX52ALrD7M6NgPEEzEo fnbyR3rBp7FlG8kAoBOovdhvcH06evwnMyUOSEvdIewdxIyqTzIdcicPn6vcax+3SbLz fDbwbqoswddoLusABXFcbTm9GbN4Npo1J9VXWNMylsUqX+0QMLLIWdLEMNKMOM9CM6o2 A6kP5Vf+jQgGhomo79hLj0pFb/Ft6aZkAFK3BzmEmlsRruYmsj116cC7ctN1wSkKlIIr +iiA== X-Gm-Message-State: APjAAAW9Y717yHHJHYAqcQhvu2DwjTJBzGKOUu/mdVwBoDt4ymEACVPM SUZFS2dLkPpwc63yrDX//pBhUOJuDEZcJOdR2FKJQA== X-Received: by 2002:a25:d610:: with SMTP id n16mr20533403ybg.486.1571073891004; Mon, 14 Oct 2019 10:24:51 -0700 (PDT) MIME-Version: 1.0 References: <20191014125302.21479-1-anders.roxell@linaro.org> In-Reply-To: <20191014125302.21479-1-anders.roxell@linaro.org> From: Sean Paul Date: Mon, 14 Oct 2019 13:24:14 -0400 Message-ID: Subject: Re: [PATCH] drm/dp-mst: remove unused variable To: Anders Roxell , Manasi Navare Cc: Maarten Lankhorst , Maxime Ripard , Dave Airlie , Daniel Vetter , dri-devel , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 14, 2019 at 8:53 AM Anders Roxell wr= ote: > > 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 =E2=80=98drm_atomic= _get_mst_topology_state=E2=80=99: > ../drivers/gpu/drm/drm_dp_mst_topology.c:4187:21: warning: unused variabl= e =E2=80=98dev=E2=80=99 [-Wunused-variable] > struct drm_device *dev =3D mgr->dev; > ^~~ > > Rework to remove the unused variable. > > Fixes: 83fa9842afe7 ("drm/dp-mst: Drop connection_mutex check") > Signed-off-by: Anders Roxell Hi Anders, Thank you for your patch! Manasi has already posted a patch for this: https://patchwork.freedesktop.org/patch/335358/ It's reviewed, so we're just waiting for it to land. Sean > --- > drivers/gpu/drm/drm_dp_mst_topology.c | 2 -- > 1 file changed, 2 deletions(-) > > 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(stru= ct drm_atomic_state *state, > struc= t drm_dp_mst_topology_mgr *mgr) > { > - struct drm_device *dev =3D 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); > -- > 2.20.1 >