netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Jeff Kirsher <jeffrey.t.kirsher@intel.com>, davem@davemloft.net
Cc: Jesse Brandeburg <jesse.brandeburg@intel.com>,
	netdev@vger.kernel.org, nhorman@redhat.com, sassmann@redhat.com,
	jogreene@redhat.com
Subject: Re: [net-next 12/15] i40evf: fix compiler warning of unused variable
Date: Thu, 26 Nov 2015 17:03:59 +0300	[thread overview]
Message-ID: <5657114F.2020009@cogentembedded.com> (raw)
In-Reply-To: <1448307376-20063-13-git-send-email-jeffrey.t.kirsher@intel.com>

Hello.

On 11/23/2015 10:36 PM, Jeff Kirsher wrote:

> From: Jesse Brandeburg <jesse.brandeburg@intel.com>
>
> Compiler complained of an unused variable, which the driver was just
> using to store the result of a rd32 which is used to clear a register
> unconditionally.  Just drop the unused variable and re-use one.

   I don't see Jesse dropping anything...

> Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
> Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
> ---
>   drivers/net/ethernet/intel/i40evf/i40evf_main.c | 7 +++----
>   1 file changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/net/ethernet/intel/i40evf/i40evf_main.c b/drivers/net/ethernet/intel/i40evf/i40evf_main.c
> index d962164..6ad6265 100644
> --- a/drivers/net/ethernet/intel/i40evf/i40evf_main.c
> +++ b/drivers/net/ethernet/intel/i40evf/i40evf_main.c
> @@ -307,10 +307,9 @@ static irqreturn_t i40evf_msix_aq(int irq, void *data)
>   	struct i40e_hw *hw = &adapter->hw;
>   	u32 val;
>
> -	/* handle non-queue interrupts */
> -	rd32(hw, I40E_VFINT_ICR01);
> -	rd32(hw, I40E_VFINT_ICR0_ENA1);
> -
> +	/* handle non-queue interrupts, these reads clear the registers */
> +	val = rd32(hw, I40E_VFINT_ICR01);
> +	val = rd32(hw, I40E_VFINT_ICR0_ENA1);

    Why if it's ignored anyway?

>
>   	val = rd32(hw, I40E_VFINT_DYN_CTL01) |
>   	      I40E_VFINT_DYN_CTL01_CLEARPBA_MASK;


MBR, Sergei

  reply	other threads:[~2015-11-26 14:04 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-23 19:36 [net-next 00/15][pull request] Intel Wired LAN Driver Updates 2015-11-23 Jeff Kirsher
2015-11-23 19:36 ` [net-next 01/15] fm10k: do not assume VF always has 1 queue Jeff Kirsher
2015-11-23 19:36 ` [net-next 02/15] fm10k: Correct MTU for jumbo frames Jeff Kirsher
2015-11-23 19:36 ` [net-next 03/15] ixgbe: drop null test before destroy functions Jeff Kirsher
2015-11-23 19:36 ` [net-next 04/15] ixgbe: Delete redundant include file Jeff Kirsher
2015-11-24 18:36   ` Joe Perches
2015-11-23 19:36 ` [net-next 05/15] ixgbe: fix multiple kernel-doc errors Jeff Kirsher
2015-11-23 19:36 ` [net-next 06/15] fm10k: Fix handling of NAPI budget when multiple queues are enabled per vector Jeff Kirsher
2015-11-23 19:36 ` [net-next 07/15] ixgbe: " Jeff Kirsher
2015-11-27  8:25   ` William Dauchy
2015-11-23 19:36 ` [net-next 08/15] ixgbe: Add KR mode support for CS4227 chip Jeff Kirsher
2015-11-23 19:36 ` [net-next 09/15] ixgbevf: Limit lowest interrupt rate for adaptive interrupt moderation to 12K Jeff Kirsher
2015-11-23 19:36 ` [net-next 10/15] ixgbe/ixgbevf: use napi_schedule_irqoff() Jeff Kirsher
2015-11-23 19:36 ` [net-next 11/15] ixgbe: Remove CS4227 diagnostic code Jeff Kirsher
2015-11-23 19:36 ` [net-next 12/15] i40evf: fix compiler warning of unused variable Jeff Kirsher
2015-11-26 14:03   ` Sergei Shtylyov [this message]
2015-11-23 19:36 ` [net-next 13/15] ixgbevf: use ether_addr_copy instead of memcpy Jeff Kirsher
2015-11-23 19:36 ` [net-next 14/15] ixgbevf: fix spoofed packets with random MAC Jeff Kirsher
2015-11-23 19:36 ` [net-next 15/15] intel: i40e: fix confused code Jeff Kirsher
2015-11-24 15:39 ` [net-next 00/15][pull request] Intel Wired LAN Driver Updates 2015-11-23 David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5657114F.2020009@cogentembedded.com \
    --to=sergei.shtylyov@cogentembedded.com \
    --cc=davem@davemloft.net \
    --cc=jeffrey.t.kirsher@intel.com \
    --cc=jesse.brandeburg@intel.com \
    --cc=jogreene@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=nhorman@redhat.com \
    --cc=sassmann@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).