Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4346018pxb; Tue, 10 Nov 2020 14:11:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmL74FImL6o6Kr1l0uQT0eZaFRs6nuLlBs02PTJhGU5TEBKnYxPkLj/SMXXyrNtjjOGQBS X-Received: by 2002:a50:d8ce:: with SMTP id y14mr1696198edj.90.1605046272116; Tue, 10 Nov 2020 14:11:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605046272; cv=none; d=google.com; s=arc-20160816; b=W2FKtVAoFzowP/zfNLSmCiJtwoSIALYpMY8fo6ldID65U1jyv3yrR37TEtQet4Un/T Z4xNZv+aDKWM1Vq1yklzyEQs/n6jtDeY2FaYfekJhn1YsairKzlWo5xRMKVeUI+7olY7 bNGK7miumyBisyMr9ap9HZ/EPH8WdeV0vhR2fO2vwoHD9nBMGih0ODgDl1GfV/9l0GjE shaY/g9KAmGJ/MrHW44Hayuge+gnu9k3rzi56yYLZ5wDQsY35SHedyHvpMQN6W50z1iI DJtZ6XSYHu5ynz5I2fB5JpmE50sfOmgWFiFM5wmWzOmzz+uIcPxB1zgEeUDqTLlteG49 Uglg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=W/G1cCKiChHWAMYc3JRK1M6ntm3rFjLembXKLShlhjI=; b=W1pQCOeh054gLlt4KRjkJCKspljBmEkv7TnnSlVp24Ybv9je80cE5kP7XtdWEaGFBc Bm40g/5tNxFVWY5EYxKpyPNPihkwg180FcLTgz/CBqG0eAhQs/ZFqA/p7p3OD20LX8PX GeV0uitpTlMbdkN0pQP6hfyWYso18zYBEXu/tGrYU/TZBLVKG3FS649zClowuRFMDe/2 R3KHjC5noe8Ca4IEQPt3XX2Chzn300LpwznM9ofZVP7LqlZy9FAC+vpoFJteKJZxcdu5 GMJyrB49+RRJWQCZRW9ybGHCL4bue7CyGZUCY0nEAZx8b/2HmbgBpdvCniPWJYDt1qsi nDNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jEHvWPHu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d14si43048edj.545.2020.11.10.14.10.48; Tue, 10 Nov 2020 14:11:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jEHvWPHu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731984AbgKJWIz (ORCPT + 99 others); Tue, 10 Nov 2020 17:08:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729862AbgKJWIz (ORCPT ); Tue, 10 Nov 2020 17:08:55 -0500 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BCBDC0613D1 for ; Tue, 10 Nov 2020 14:08:54 -0800 (PST) Received: by mail-wm1-x344.google.com with SMTP id p19so2886597wmg.0 for ; Tue, 10 Nov 2020 14:08:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=W/G1cCKiChHWAMYc3JRK1M6ntm3rFjLembXKLShlhjI=; b=jEHvWPHultoa+XlSxa6GFBJtx/Qp4byqG0fkbQf03ZlkKLmHTauy1n04ojprn0LjD7 AqjVJD9NAWrabIVHV0GXdLKuJp92lPRC5srbI2D4E/7e1FRBXoKrhpZAVjHn21ZvdPgS fOzCj45HiC2oJV9hrDcVbrF7B9PZxeFuDC2MY/orooI08UpqBYBv3XE6b9HwI6ReKWuN JpqUGDY3BZZRDwa9/eHdDZz11aNpCO/oHrBatIPLHGiAQ2rLJVZ3LbtZIKhXVTw1tDEX AdOQrOx33vTKFSB9ixCB51OYBUhmkkxUu+lFBmgVQrkdbV1Ovi9J3KW2CmoGJfHuMKsX Hz8Q== 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=W/G1cCKiChHWAMYc3JRK1M6ntm3rFjLembXKLShlhjI=; b=BLczGrinDbXQ+Zddfa2saGL9/kbn2JGgErPojO2hlzOovk8kP2XxySia0qXoOwG6cU qG7YsvtvvKxoAZwEk9WudWhce+lMJopLwDyIwp7mbGTEIzmAnYMdt7KaOAsQikVaxAst VE36jSsGMieTJllk67OYdnFZPD/T3Ks9mGr+ywbJFaJ0vr2Q4rh6rayaLiAA/n4FUuqT yEhncAXhSJ0Uw90Ydo3B7/l+2Ke+QzuCwGt5M8ORi99n8jkRlZjGNhEx71RVH4/FW1R5 WeJGahNmaPlrP3EExWH2GEt6DICZVP3NNOcwt1H8x78qkRa3kPcx+rJRmT4Em4+NV2M2 HuKw== X-Gm-Message-State: AOAM531LejjBCRD/JGI7pIv0HxwkiJLvUaon5eiFDN+ivJ+wo9DeQ8U2 +vRyJ2iA1/jIteTTOMJLBLgWaPf1TB56CjAyf4o= X-Received: by 2002:a1c:6302:: with SMTP id x2mr273459wmb.56.1605046132845; Tue, 10 Nov 2020 14:08:52 -0800 (PST) MIME-Version: 1.0 References: <20201109211855.3340030-1-lee.jones@linaro.org> <20201109211855.3340030-7-lee.jones@linaro.org> In-Reply-To: <20201109211855.3340030-7-lee.jones@linaro.org> From: Alex Deucher Date: Tue, 10 Nov 2020 17:08:41 -0500 Message-ID: Subject: Re: [PATCH 06/20] drm/radeon/radeon_connectors: Strip out set but unused variable 'ret' To: Lee Jones Cc: David Airlie , LKML , amd-gfx list , Maling list - DRI developers , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 9, 2020 at 4:19 PM Lee Jones wrote: > > Fixes the following W=3D1 kernel build warning(s): > > drivers/gpu/drm/radeon/radeon_connectors.c: In function =E2=80=98radeon_= setup_mst_connector=E2=80=99: > drivers/gpu/drm/radeon/radeon_connectors.c:2574:7: warning: variable =E2= =80=98ret=E2=80=99 set but not used [-Wunused-but-set-variable] > > Cc: Alex Deucher > Cc: "Christian K=C3=B6nig" > Cc: David Airlie > Cc: Daniel Vetter > Cc: amd-gfx@lists.freedesktop.org > Cc: dri-devel@lists.freedesktop.org > Signed-off-by: Lee Jones Applied. Thanks! Alex > --- > 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 =3D to_radeon_connector(connector); > > if (connector->connector_type !=3D DRM_MODE_CONNECTOR_Dis= playPort) > continue; > > - ret =3D radeon_dp_mst_init(radeon_connector); > + radeon_dp_mst_init(radeon_connector); > } > } > -- > 2.25.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel