diff options
author | Joe Perches <joe@perches.com> | 2009-12-03 02:58:21 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-12-03 16:18:01 -0500 |
commit | 8e95a2026f3b43f7c3d676adaccd2de9532e8dcc (patch) | |
tree | 3733318168cd512480b6db58c5c16d1c8847f0b7 /drivers/net/netxen/netxen_nic_ethtool.c | |
parent | 3454f835837609d60b29a266e3bd9d701073b060 (diff) |
drivers/net: Move && and || to end of previous line
Only files where David Miller is the primary git-signer.
wireless, wimax, ixgbe, etc are not modified.
Compile tested x86 allyesconfig only
Not all files compiled (not x86 compatible)
Added a few > 80 column lines, which I ignored.
Existing checkpatch complaints ignored.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netxen/netxen_nic_ethtool.c')
-rw-r--r-- | drivers/net/netxen/netxen_nic_ethtool.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/drivers/net/netxen/netxen_nic_ethtool.c b/drivers/net/netxen/netxen_nic_ethtool.c index c86095eb5d9e..ddd704ae0188 100644 --- a/drivers/net/netxen/netxen_nic_ethtool.c +++ b/drivers/net/netxen/netxen_nic_ethtool.c | |||
@@ -257,18 +257,18 @@ netxen_nic_set_settings(struct net_device *dev, struct ethtool_cmd *ecmd) | |||
257 | /* read which mode */ | 257 | /* read which mode */ |
258 | if (adapter->ahw.port_type == NETXEN_NIC_GBE) { | 258 | if (adapter->ahw.port_type == NETXEN_NIC_GBE) { |
259 | /* autonegotiation */ | 259 | /* autonegotiation */ |
260 | if (adapter->phy_write | 260 | if (adapter->phy_write && |
261 | && adapter->phy_write(adapter, | 261 | adapter->phy_write(adapter, |
262 | NETXEN_NIU_GB_MII_MGMT_ADDR_AUTONEG, | 262 | NETXEN_NIU_GB_MII_MGMT_ADDR_AUTONEG, |
263 | ecmd->autoneg) != 0) | 263 | ecmd->autoneg) != 0) |
264 | return -EIO; | 264 | return -EIO; |
265 | else | 265 | else |
266 | adapter->link_autoneg = ecmd->autoneg; | 266 | adapter->link_autoneg = ecmd->autoneg; |
267 | 267 | ||
268 | if (adapter->phy_read | 268 | if (adapter->phy_read && |
269 | && adapter->phy_read(adapter, | 269 | adapter->phy_read(adapter, |
270 | NETXEN_NIU_GB_MII_MGMT_ADDR_PHY_STATUS, | 270 | NETXEN_NIU_GB_MII_MGMT_ADDR_PHY_STATUS, |
271 | &status) != 0) | 271 | &status) != 0) |
272 | return -EIO; | 272 | return -EIO; |
273 | 273 | ||
274 | /* speed */ | 274 | /* speed */ |
@@ -288,10 +288,10 @@ netxen_nic_set_settings(struct net_device *dev, struct ethtool_cmd *ecmd) | |||
288 | netxen_clear_phy_duplex(status); | 288 | netxen_clear_phy_duplex(status); |
289 | if (ecmd->duplex == DUPLEX_FULL) | 289 | if (ecmd->duplex == DUPLEX_FULL) |
290 | netxen_set_phy_duplex(status); | 290 | netxen_set_phy_duplex(status); |
291 | if (adapter->phy_write | 291 | if (adapter->phy_write && |
292 | && adapter->phy_write(adapter, | 292 | adapter->phy_write(adapter, |
293 | NETXEN_NIU_GB_MII_MGMT_ADDR_PHY_STATUS, | 293 | NETXEN_NIU_GB_MII_MGMT_ADDR_PHY_STATUS, |
294 | *((int *)&status)) != 0) | 294 | *((int *)&status)) != 0) |
295 | return -EIO; | 295 | return -EIO; |
296 | else { | 296 | else { |
297 | adapter->link_speed = ecmd->speed; | 297 | adapter->link_speed = ecmd->speed; |
@@ -442,10 +442,10 @@ static u32 netxen_nic_test_link(struct net_device *dev) | |||
442 | 442 | ||
443 | /* read which mode */ | 443 | /* read which mode */ |
444 | if (adapter->ahw.port_type == NETXEN_NIC_GBE) { | 444 | if (adapter->ahw.port_type == NETXEN_NIC_GBE) { |
445 | if (adapter->phy_read | 445 | if (adapter->phy_read && |
446 | && adapter->phy_read(adapter, | 446 | adapter->phy_read(adapter, |
447 | NETXEN_NIU_GB_MII_MGMT_ADDR_PHY_STATUS, | 447 | NETXEN_NIU_GB_MII_MGMT_ADDR_PHY_STATUS, |
448 | &status) != 0) | 448 | &status) != 0) |
449 | return -EIO; | 449 | return -EIO; |
450 | else { | 450 | else { |
451 | val = netxen_get_phy_link(status); | 451 | val = netxen_get_phy_link(status); |