diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-02-04 19:02:19 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2008-02-11 11:06:34 -0500 |
commit | 073d3f46e5ccc49ede1d3487ed1e71d63d71b750 (patch) | |
tree | dc87d96ac2c40109400c53752f989f4f0ff939d8 /drivers/net | |
parent | d39cb7866e5f6ff32ed4d99cc3fcd19bda701492 (diff) |
DM9000: Remove redudant use of "& 0xff"
The writing of the data should implicitly truncate
the data to 8bits, so do not bother with the ands
in the code.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/dm9000.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/dm9000.c b/drivers/net/dm9000.c index 2259605131cf..d0cd7f945fde 100644 --- a/drivers/net/dm9000.c +++ b/drivers/net/dm9000.c | |||
@@ -814,8 +814,8 @@ dm9000_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
814 | /* TX control: First packet immediately send, second packet queue */ | 814 | /* TX control: First packet immediately send, second packet queue */ |
815 | if (db->tx_pkt_cnt == 1) { | 815 | if (db->tx_pkt_cnt == 1) { |
816 | /* Set TX length to DM9000 */ | 816 | /* Set TX length to DM9000 */ |
817 | iow(db, DM9000_TXPLL, skb->len & 0xff); | 817 | iow(db, DM9000_TXPLL, skb->len); |
818 | iow(db, DM9000_TXPLH, (skb->len >> 8) & 0xff); | 818 | iow(db, DM9000_TXPLH, skb->len >> 8); |
819 | 819 | ||
820 | /* Issue TX polling command */ | 820 | /* Issue TX polling command */ |
821 | iow(db, DM9000_TCR, TCR_TXREQ); /* Cleared after TX complete */ | 821 | iow(db, DM9000_TCR, TCR_TXREQ); /* Cleared after TX complete */ |
@@ -890,8 +890,8 @@ dm9000_tx_done(struct net_device *dev, board_info_t * db) | |||
890 | 890 | ||
891 | /* Queue packet check & send */ | 891 | /* Queue packet check & send */ |
892 | if (db->tx_pkt_cnt > 0) { | 892 | if (db->tx_pkt_cnt > 0) { |
893 | iow(db, DM9000_TXPLL, db->queue_pkt_len & 0xff); | 893 | iow(db, DM9000_TXPLL, db->queue_pkt_len); |
894 | iow(db, DM9000_TXPLH, (db->queue_pkt_len >> 8) & 0xff); | 894 | iow(db, DM9000_TXPLH, db->queue_pkt_len >> 8); |
895 | iow(db, DM9000_TCR, TCR_TXREQ); | 895 | iow(db, DM9000_TCR, TCR_TXREQ); |
896 | dev->trans_start = jiffies; | 896 | dev->trans_start = jiffies; |
897 | } | 897 | } |
@@ -1275,8 +1275,8 @@ dm9000_phy_write(struct net_device *dev, int phyaddr_unused, int reg, int value) | |||
1275 | iow(db, DM9000_EPAR, DM9000_PHY | reg); | 1275 | iow(db, DM9000_EPAR, DM9000_PHY | reg); |
1276 | 1276 | ||
1277 | /* Fill the written data into REG_0D & REG_0E */ | 1277 | /* Fill the written data into REG_0D & REG_0E */ |
1278 | iow(db, DM9000_EPDRL, (value & 0xff)); | 1278 | iow(db, DM9000_EPDRL, value); |
1279 | iow(db, DM9000_EPDRH, ((value >> 8) & 0xff)); | 1279 | iow(db, DM9000_EPDRH, value >> 8); |
1280 | 1280 | ||
1281 | iow(db, DM9000_EPCR, 0xa); /* Issue phyxcer write command */ | 1281 | iow(db, DM9000_EPCR, 0xa); /* Issue phyxcer write command */ |
1282 | 1282 | ||