Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp513280imm; Wed, 4 Jul 2018 00:51:31 -0700 (PDT) X-Google-Smtp-Source: AAOMgpduGIVl6VYEK4xN5Zm9pVdC2KyiU8rLJUXEXbBUQ8c2IyyW1xnTXh2E8+TO/rhp/H1QsqT3 X-Received: by 2002:a17:902:a508:: with SMTP id s8-v6mr1036381plq.223.1530690691240; Wed, 04 Jul 2018 00:51:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530690691; cv=none; d=google.com; s=arc-20160816; b=f842wRlPzL4Q1ncS55jzsgfv0Y8Y+1q7QoE5fugOQYqlpE89KBiJZ8TrF8ZDzst1/f 4XACImNRGmkocDYyhsBlRkdDsnjGnOPi79De1NOiUEiOk9T/PSMZvUH/Su5VZllft6kD OogawjgSZoj3glsRaK1fRu5Cn8zuewLlGxZkFvYsKu9PDSCQpOtHhj+vRY8PgETXXjn0 lrcAnbX/0wBzyMPPm+8BsbuQVmYB0d1XthN4f6XqdpzOaeKbsLtw+M9rFQL2qK3M6Jaw U5nP43BIyL2st4ocWzWCEyYETKSpML1nO9KHuyNTpuXvHOMUxJ9k1kQwCPQ4uo1+uC3b jYzw== 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:arc-authentication-results; bh=ehV72dsfdIP6QGppKY7Q/78mGWHYtr5vqcdyvYcJ/ZM=; b=OBxTFzioHf83iflKcaNu0TQiWkKaFBzyt3uWpznVpAQlNNKhDNvrrJHH63a5y8iEI8 EdeleaTzOhvbVf5h8SaK9v7ft0p6l662BLH1wSGlQBjOSY3kD+7Vp+MRQdY7Id9QyTEu bI38emTxGxcrBsfhbqGhLMEaSNMKJU3aWsRm/KyJ1IboGMRN+KT4e0FYAJxXMMK+RMT5 yQclrdsRcv34Xbq2nOjztsdqaH2sHJtezKO+JNXv3i9rjIqXPRFhb2mnWl/m4IViKhZs V9+XwBPQ5/dEOE3pLlOodtfhizW0WEg7UTMZMfYoZvJVA6xoPwUhSVtepLtQFCrsDdUE zQGA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n16-v6si27673pgl.596.2018.07.04.00.51.17; Wed, 04 Jul 2018 00:51:31 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933844AbeGDHts (ORCPT + 99 others); Wed, 4 Jul 2018 03:49:48 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:38769 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932290AbeGDHtq (ORCPT ); Wed, 4 Jul 2018 03:49:46 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1facXo-0003XO-2R; Wed, 04 Jul 2018 07:49:44 +0000 From: Colin King To: Fugang Duan , "David S . Miller" , netdev@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: fec: remove redundant variable 'inc' Date: Wed, 4 Jul 2018 08:49:43 +0100 Message-Id: <20180704074943.15820-1-colin.king@canonical.com> X-Mailer: git-send-email 2.17.1 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: Colin Ian King Variable 'inc' is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'inc' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King --- drivers/net/ethernet/freescale/fec_ptp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ethernet/freescale/fec_ptp.c b/drivers/net/ethernet/freescale/fec_ptp.c index 36c2d7d6ee1b..7e892b1cbd3d 100644 --- a/drivers/net/ethernet/freescale/fec_ptp.c +++ b/drivers/net/ethernet/freescale/fec_ptp.c @@ -99,7 +99,6 @@ static int fec_ptp_enable_pps(struct fec_enet_private *fep, uint enable) { unsigned long flags; u32 val, tempval; - int inc; struct timespec64 ts; u64 ns; val = 0; @@ -114,7 +113,6 @@ static int fec_ptp_enable_pps(struct fec_enet_private *fep, uint enable) fep->pps_channel = DEFAULT_PPS_CHANNEL; fep->reload_period = PPS_OUPUT_RELOAD_PERIOD; - inc = fep->ptp_inc; spin_lock_irqsave(&fep->tmreg_lock, flags); -- 2.17.1