Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9978309ybi; Wed, 24 Jul 2019 13:25:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqyFQdj8psOmzRjNKYBJm0GedvNWti5EevjPv0Fk4yUNziHf9dRXJMGgLlS3Uum6KbbYkEz4 X-Received: by 2002:a63:9dcb:: with SMTP id i194mr37603854pgd.444.1563999920719; Wed, 24 Jul 2019 13:25:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563999920; cv=none; d=google.com; s=arc-20160816; b=wySEvboiPhzVVnf0Ai7iCE/Eh3RKCgZeawO8rGDYJipeOy+iCTKuvJlwHgE/00jPqf C0QHbryEHUPXWvl2aD7hqMHbgIRh+T8VZn3isGoIzJcV9IMw0LbWwnpZq0dnDPAlNu+X Pzd9rmXnZbNsY+c7Fqxrd+/CN32rYqyq0+DmlOv1OLJ0PQmAfbPeNgPMMnKqlgArwJAA mKdn0AC1AUSf46mqo54GxVRgqePAmtI2UYQNqy37HrMTi5j023Lde5wB/alqFIiYqTyf C1gHngfAc2PcYMRu2VJRzeKmjJQSaM7FT3+0HDYbjCZfYq5eZs7qXldXhCLtatF760By wSUQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=OiywBnaKSBoMV0DP3qNczCev5YwW9un1i9hFYwoz3lQ=; b=b4O5Gy4ODAeiumYnWM+5dV38uvYBWVnXmGNBgxm7nQ3c96xRPE5TyK2V7+J+4edMZU US0DN3+2MYfxHVsCyIQrvfnG2atuBYgWoaA39ZnxU1qAZNdZLs58DArjyLKNvyuSkg/i TTT4NgjiG5MEPvjPdySvr5y906ZeQGupAM3x9YAmja3UU4UetufxaKZQlGbuLZubwspa P2S3sxdu+hn2hmIZEOgpYdf0+yt/QE9iHRLFWdiX36AmWwsp15y5A1LJL2JZnqopk30u eHDAviR2+QclWKm3E5dlk0oqA5Lc/A3UjAGvn2MrE3weFK69KO6pgFIEpc3OsD9B1sPA dZWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jpTFZ6pu; 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 f2si15520987plt.386.2019.07.24.13.25.06; Wed, 24 Jul 2019 13:25:20 -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=@kernel.org header.s=default header.b=jpTFZ6pu; 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 S2389563AbfGXUX4 (ORCPT + 99 others); Wed, 24 Jul 2019 16:23:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:43700 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389834AbfGXTmI (ORCPT ); Wed, 24 Jul 2019 15:42:08 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C7A86217D4; Wed, 24 Jul 2019 19:42:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563997327; bh=bH7HEJN75KA7ejjclIFJ1AYUaANw/c/kpX06FvnMffY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jpTFZ6pus7L+NmfFOuXm6OYuAjwiTX4JY3z4vx5CTGUID8WB6LYV9+CcplWsEBcGk mwrCOm1eQH6gyrFsS9Gp05jONDpVf+uGbd6NsvTsMYbAj+78JL66zyzyMnW3vQ6rkW buxEb5pYrXdcPmo07B1MZH13eYgHfbDupL+nHP/Q= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, YueHaibing , Andy Shevchenko , Alexander Shishkin Subject: [PATCH 5.2 399/413] intel_th: msu: Remove set but not used variable last Date: Wed, 24 Jul 2019 21:21:30 +0200 Message-Id: <20190724191803.418188256@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191735.096702571@linuxfoundation.org> References: <20190724191735.096702571@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YueHaibing commit 9800db282dff675dd700d5985d90b605c34b5ccd upstream. Commit aad14ad3cf3a ("intel_th: msu: Add current window tracking") added the following gcc warning: > drivers/hwtracing/intel_th/msu.c: In function msc_win_switch: > drivers/hwtracing/intel_th/msu.c:1389:21: warning: variable last set but > not used [-Wunused-but-set-variable] Fix it by removing the variable. Signed-off-by: YueHaibing Fixes: aad14ad3cf3a ("intel_th: msu: Add current window tracking") Reviewed-by: Andy Shevchenko Signed-off-by: Alexander Shishkin Cc: stable Link: https://lore.kernel.org/r/20190621161930.60785-3-alexander.shishkin@linux.intel.com Signed-off-by: Greg Kroah-Hartman --- drivers/hwtracing/intel_th/msu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/drivers/hwtracing/intel_th/msu.c +++ b/drivers/hwtracing/intel_th/msu.c @@ -1400,10 +1400,9 @@ static int intel_th_msc_init(struct msc static void msc_win_switch(struct msc *msc) { - struct msc_window *last, *first; + struct msc_window *first; first = list_first_entry(&msc->win_list, struct msc_window, entry); - last = list_last_entry(&msc->win_list, struct msc_window, entry); if (msc_is_last_win(msc->cur_win)) msc->cur_win = first;