From patchwork Thu Nov 12 10:58:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324172 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp239767ils; Thu, 12 Nov 2020 03:07:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJy5R8eVeXylf8Y8CpbXraGO9etTeRROvE5O/yFpFTo5yuJD/0r5QmG9ihthMKkIGx51tEm0 X-Received: by 2002:aa7:d2d9:: with SMTP id k25mr4384574edr.310.1605179278040; Thu, 12 Nov 2020 03:07:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605179278; cv=none; d=google.com; s=arc-20160816; b=sh+KcyeC/ZOnR6IYTvilNq2R0AAUe2IyfVVfiLY8Xo5Nsiu44HgqAJRYSBduvJgDgx SlEkeFxKAgJ4TNc+6lFbE+o+5Y/Uh0G50eR5AcSs+Exzx56+NvJ/AHCcF6KfwOkGrQtn sV792cLkdMIkp5hi+8+ty42G9KaXUFQl5bgjaVkoo+CJERxotVABPL6zZZIbU/yWhLpq 40sKrniHZ6zMWiVtWoixTbEb2wpYsIsW5IHPhp3M7l1xZB5If8alQOpKXokOddQ351zK 5BvRXBCTmRJj0gICl4/sM2V7t77rYcVDTfe0P2L/OdwZ33KtdSpD8mlZ0dU1QANoT9Eq nIaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wgyLyFchGL7Sp7PDuveL5Dq/jWJMAfMom/lcxhPZFGk=; b=Ddv76BbIq4MoKLmasiXTYby7jNE3umVk+7UqO137Hp9yfCSh3Q1x6mcgKGuUc8Xv75 w2vcXPDJ6CyRyhaTbjEvxDf9LM3PSZeo5csqI4ORduQRbxOr2sKrGjSdfqqBIXtrk8Ki KE1wOQXa6e++98sfzuzUn+vYP1rze1viBWOF2AuSz2ff5CmQnfF8m1vIvUmOQjs9Fxlf NM6izUyQ+HUzjYPio1PwchVhALDQ/ioyj+9DOUnmNhXYSMQT0oJrHhllkETqBRRJOj4B mZy0+2lWY6M0xuOmVVSCwPZukVKtvIYg2omd+ezb/o6dXYFPQZLPWasd2OQQMflJdjYC 0+Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OIcAU4L2; spf=pass (google.com: domain of linux-serial-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-serial-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. [23.128.96.18]) by mx.google.com with ESMTP id t11si3585541edj.441.2020.11.12.03.07.57; Thu, 12 Nov 2020 03:07:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-serial-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=@linaro.org header.s=google header.b=OIcAU4L2; spf=pass (google.com: domain of linux-serial-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-serial-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 S1727234AbgKLLHm (ORCPT + 2 others); Thu, 12 Nov 2020 06:07:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726776AbgKLK7I (ORCPT ); Thu, 12 Nov 2020 05:59:08 -0500 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68EA7C0613D4 for ; Thu, 12 Nov 2020 02:59:06 -0800 (PST) Received: by mail-wm1-x342.google.com with SMTP id 19so4885725wmf.1 for ; Thu, 12 Nov 2020 02:59:06 -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=wgyLyFchGL7Sp7PDuveL5Dq/jWJMAfMom/lcxhPZFGk=; b=OIcAU4L2NY90scoNe97J7Lo3gdQ4brKCLe5fP7yOH2yD67Ofz0aO0Wo5MUjF2m7/2C iqhZfqgE7sx7uOpFPy6Ej8kW1KzNWFmtq5SPp7JzD7HcWn46JIHoJagCqfDo1sLnBMmW 8Ag48q1gpX4QthRyaDE+UI3Mt18iHtxM0E6J81ecjFGOXmqgtNRJkbanRvJMVY+ewKaZ yKEIWMnBWpwiUDnYYiK+r6VCsU2UdmV9yTj07zJZJMrzl00HxHjL52MRjrnzsiZLqanr olAQRFJvinPjCXmYaWsofa2c+EJTF0jTIVk2+chj6Zx6LKZcVdSbdxxJR5dgoozgc9p4 XSZQ== 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=wgyLyFchGL7Sp7PDuveL5Dq/jWJMAfMom/lcxhPZFGk=; b=GOla+nH3HxI/8zBo/cp88AhanXi86Ob2xgovXRqUAXGTXPqgZDJWw8nguppoc25+xe OgM7SZTHw63JHCqqRgTE+3xqwxe5MylCVs0e3THkZ9M5eFxGfqwAmyJj9+vBE5ltiheV ucPpBl/FLn/spGPuPw47l1dMqTVtC0hkPFBmiyucgyir/Nuhd+jShFdQPeIrLAJq7OXa fhFxUc3p+gWuBHxIkvXZhnGSKa/KTQMOLP7z8QtvIDYfoferl2hLLJ8PD4Rs/VDK1VpP HWy1Xh+G+obDWgPyn742U4yCsoE5P+EWP2IMc5lSQHvX0IXPclaYSnEwX670J7YBGPvl lqqw== X-Gm-Message-State: AOAM533j1UpLR6aq2YwYkmqfTFAl/T3Ubqz1/bxI9yWgQrdFrnuTm71O pgk4Mx+Px1BPx3NOIjCkO5HUcg== X-Received: by 2002:a1c:4c09:: with SMTP id z9mr9042901wmf.55.1605178745182; Thu, 12 Nov 2020 02:59:05 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id u5sm1167239wro.56.2020.11.12.02.59.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 02:59:04 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Jiri Slaby , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linux-serial@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH v2 4/4] tty: serial: pmac_zilog: Remove unused disposable variable 'garbage' Date: Thu, 12 Nov 2020 10:58:57 +0000 Message-Id: <20201112105857.2078977-5-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201112105857.2078977-1-lee.jones@linaro.org> References: <20201112105857.2078977-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/tty/serial/pmac_zilog.h:365:58: warning: variable ‘garbage’ set but not used [-Wunused-but-set-variable] Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linux-serial@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Lee Jones --- drivers/tty/serial/pmac_zilog.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.25.1 diff --git a/drivers/tty/serial/pmac_zilog.h b/drivers/tty/serial/pmac_zilog.h index bb874e76810e0..fa85b0de5c2fd 100644 --- a/drivers/tty/serial/pmac_zilog.h +++ b/drivers/tty/serial/pmac_zilog.h @@ -362,10 +362,10 @@ static inline void zssync(struct uart_pmac_port *port) /* Misc macros */ #define ZS_CLEARERR(port) (write_zsreg(port, 0, ERR_RES)) -#define ZS_CLEARFIFO(port) do { volatile unsigned char garbage; \ - garbage = read_zsdata(port); \ - garbage = read_zsdata(port); \ - garbage = read_zsdata(port); \ +#define ZS_CLEARFIFO(port) do { \ + read_zsdata(port); \ + read_zsdata(port); \ + read_zsdata(port); \ } while(0) #define ZS_IS_CONS(UP) ((UP)->flags & PMACZILOG_FLAG_IS_CONS)