ps3: some minor cleanups
authorMasakazu Mokuno <mokuno@sm.sony.co.jp>
Fri, 20 Jul 2007 08:22:51 +0000 (17:22 +0900)
committerJeff Garzik <jeff@garzik.org>
Tue, 24 Jul 2007 20:28:39 +0000 (16:28 -0400)
- Removed the embarrassing definition which was used in only one
  place.
- Fixed wrong initialization of dmac_cmd_status.

Signed-off-by: Masakazu Mokuno <mokuno@sm.sony.co.jp>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/ps3_gelic_net.c
drivers/net/ps3_gelic_net.h

index 676a89df4d70da5a45009325ead974d7d93d8551..f0610fba4c95edc5e09eda9ff19aed356dfe4aaa 100644 (file)
@@ -290,7 +290,8 @@ static void gelic_net_release_rx_chain(struct gelic_net_card *card)
                        descr->buf_addr = 0;
                        dev_kfree_skb_any(descr->skb);
                        descr->skb = NULL;
-                       descr->dmac_cmd_status = GELIC_NET_DESCR_NOT_IN_USE;
+                       gelic_net_set_descr_status(descr,
+                                                  GELIC_NET_DESCR_NOT_IN_USE);
                }
                descr = descr->next;
        } while (descr != card->rx_chain.head);
@@ -374,7 +375,7 @@ static void gelic_net_release_tx_descr(struct gelic_net_card *card,
        descr->skb = NULL;
 
        /* set descr status */
-       descr->dmac_cmd_status = GELIC_NET_DMAC_CMDSTAT_NOT_IN_USE;
+       gelic_net_set_descr_status(descr, GELIC_NET_DESCR_NOT_IN_USE);
 }
 
 /**
index 5e1c28654e16146918a70e2efbbd3da4619a939f..83ccfd9f975c8c3381b398f4ecaed7e742845da6 100644 (file)
@@ -133,7 +133,6 @@ enum gelic_net_int1_status {
                                                      * interrupt status */
 
 #define GELIC_NET_DMAC_CMDSTAT_CHAIN_END  0x00000002 /* RXDCEIS:DMA stopped */
-#define GELIC_NET_DMAC_CMDSTAT_NOT_IN_USE 0xb0000000
 #define GELIC_NET_DESCR_IND_PROC_SHIFT    28
 #define GELIC_NET_DESCR_IND_PROC_MASKO    0x0fffffff