[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <19212.8726.367568.937773@gargle.gargle.HOWL>
Date: Tue, 24 Nov 2009 19:12:38 +0100
From: robert@...julf.net
To: Joe Perches <joe@...ches.com>
Cc: Robert Olsson <robert@...julf.net>,
David Miller <davem@...emloft.net>, netdev@...r.kernel.org
Subject: Re: Diagnostic Monitoring Interface Monitoring (DOM) PATCH 4/5 for
net-next-2.6
Joe Perches writes:
> Can you run ./scripts/checkpatch.pl on your patches please?
Yes there were many objections... but my linux quantum is for over for now
> > + if((res = read_phy_diag(hw, 0x1, DOM_A2_TEMP_SLOPE, &pd->temp_slope)))
> > + goto out;
> [etc...]
> > + if((res = read_phy_diag(hw, 0x1, DOM_A2_TX_I_OFFSET, &pd->tx_bias_offset)))
> > + goto out;
>
> perhaps this is clearer as:
>
> if (read_phy_diag(hw, 0x1, reg, loc) ||
> read_phy_diag(hw, 0x1, reg2, loc2) ||
> ...
> read_phy_diag(hw, 0x1, regN, locN))
> goto out;
Feel free to attack it...
Cheers
--ro
--
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