aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/netxen
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2009-12-03 02:58:21 -0500
committerDavid S. Miller <davem@davemloft.net>2009-12-03 16:18:01 -0500
commit8e95a2026f3b43f7c3d676adaccd2de9532e8dcc (patch)
tree3733318168cd512480b6db58c5c16d1c8847f0b7 /drivers/net/netxen
parent3454f835837609d60b29a266e3bd9d701073b060 (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')
-rw-r--r--drivers/net/netxen/netxen_nic_ethtool.c32
-rw-r--r--drivers/net/netxen/netxen_nic_hw.c16
2 files changed, 24 insertions, 24 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);
diff --git a/drivers/net/netxen/netxen_nic_hw.c b/drivers/net/netxen/netxen_nic_hw.c
index 89bd5194e37a..2e364fee3cbb 100644
--- a/drivers/net/netxen/netxen_nic_hw.c
+++ b/drivers/net/netxen/netxen_nic_hw.c
@@ -1936,10 +1936,10 @@ void netxen_nic_set_link_parameters(struct netxen_adapter *adapter)
1936 return; 1936 return;
1937 } 1937 }
1938 1938
1939 if (adapter->phy_read 1939 if (adapter->phy_read &&
1940 && adapter->phy_read(adapter, 1940 adapter->phy_read(adapter,
1941 NETXEN_NIU_GB_MII_MGMT_ADDR_PHY_STATUS, 1941 NETXEN_NIU_GB_MII_MGMT_ADDR_PHY_STATUS,
1942 &status) == 0) { 1942 &status) == 0) {
1943 if (netxen_get_phy_link(status)) { 1943 if (netxen_get_phy_link(status)) {
1944 switch (netxen_get_phy_speed(status)) { 1944 switch (netxen_get_phy_speed(status)) {
1945 case 0: 1945 case 0:
@@ -1966,10 +1966,10 @@ void netxen_nic_set_link_parameters(struct netxen_adapter *adapter)
1966 adapter->link_duplex = -1; 1966 adapter->link_duplex = -1;
1967 break; 1967 break;
1968 } 1968 }
1969 if (adapter->phy_read 1969 if (adapter->phy_read &&
1970 && adapter->phy_read(adapter, 1970 adapter->phy_read(adapter,
1971 NETXEN_NIU_GB_MII_MGMT_ADDR_AUTONEG, 1971 NETXEN_NIU_GB_MII_MGMT_ADDR_AUTONEG,
1972 &autoneg) != 0) 1972 &autoneg) != 0)
1973 adapter->link_autoneg = autoneg; 1973 adapter->link_autoneg = autoneg;
1974 } else 1974 } else
1975 goto link_down; 1975 goto link_down;