[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20140524.001739.1276621872731687446.davem@davemloft.net>
Date: Sat, 24 May 2014 00:17:39 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: prashant@...adcom.com
Cc: netdev@...r.kernel.org, mchan@...adcom.com
Subject: Re: [PATCH net-next] tg3: Override clock, link aware and link idle
mode during NVRAM dump
From: Prashant Sreedharan <prashant@...adcom.com>
Date: Fri, 23 May 2014 09:54:44 -0700
> + if (cpmu_val & (CPMU_CTRL_LINK_AWARE_MODE |
> + CPMU_CTRL_LINK_IDLE_MODE)) {
> +
Please remove this empty line.
> + tw32(TG3_CPMU_CTRL, cpmu_val &
> + ~(CPMU_CTRL_LINK_AWARE_MODE |
> + CPMU_CTRL_LINK_IDLE_MODE));
This is not indented correctly.
The ~() expression is part of the "cpum_val &", it's not
another separate argument to tw32().
Therefore ~() should be indented to the column cpum_val starts
at.
> + if (need_resched()) {
> + if (signal_pending(current)) {
> + eeprom->len += i;
> + ret = -EINTR;
> + goto eeprom_done;
Why are you incrementing eeprom->len when you break out of the
loop due to a signal? You didn't read that extra byte.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists