diff for duplicates of <485A3437.4010902@renesas.com> diff --git a/a/1.txt b/N1/1.txt index 93e2c50..a230451 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -93,7 +93,7 @@ index 37f3116..99557ea 100644 struct sk_buff *skb; @@ -201,9 +228,15 @@ static void sh_eth_ring_format(struct net_device *ndev) mdp->rx_skbuff[i] = skb; - if (skb = NULL) + if (skb == NULL) break; - skb->dev = ndev; /* Mark as being used by this device. */ + skb->dev = ndev; /* Mark as being used by this device. */ @@ -114,7 +114,7 @@ index 37f3116..99557ea 100644 /* The size of the buffer is 16 byte boundary. */ rxdesc->buffer_length = (mdp->rx_buf_sz + 16) & ~0x0F; + /* Rx descriptor address set */ -+ if (i = 0) { ++ if (i == 0) { + ctrl_outl((u32)rxdesc, ioaddr + RDLAR); +#if defined(CONFIG_CPU_SUBTYPE_SH7763) + ctrl_outl((u32)rxdesc, ioaddr + RDFAR); @@ -140,7 +140,7 @@ index 37f3116..99557ea 100644 txdesc = &mdp->tx_ring[i]; txdesc->status = cpu_to_le32(TD_TFP); txdesc->buffer_length = 0; -+ if (i = 0) { ++ if (i == 0) { + /* Rx descriptor address set */ + ctrl_outl((u32)txdesc, ioaddr + TDLAR); +#if defined(CONFIG_CPU_SUBTYPE_SH7763) @@ -257,10 +257,10 @@ index 37f3116..99557ea 100644 + /* The size of the buffer is 16 byte boundary. */ + rxdesc->buffer_length = (mdp->rx_buf_sz + 16) & ~0x0F; + - if (mdp->rx_skbuff[entry] = NULL) { + if (mdp->rx_skbuff[entry] == NULL) { skb = dev_alloc_skb(mdp->rx_buf_sz); mdp->rx_skbuff[entry] = skb; - if (skb = NULL) + if (skb == NULL) break; /* Better luck next round. */ skb->dev = ndev; +#if defined(CONFIG_CPU_SUBTYPE_SH7763) @@ -277,10 +277,12 @@ index 37f3116..99557ea 100644 - /* The size of the buffer is 16 byte boundary. */ - rxdesc->buffer_length = (mdp->rx_buf_sz + 16) & ~0x0F; if (entry >= RX_RING_SIZE - 1) - rxdesc->status |- cpu_to_le32(RD_RACT | RD_RFP | RC_RDEL); + rxdesc->status |= +- cpu_to_le32(RD_RACT | RD_RFP | RC_RDEL); + cpu_to_le32(RD_RACT | RD_RFP | RD_RDEL); else - rxdesc->status |- cpu_to_le32(RD_RACT | RD_RFP); + rxdesc->status |= +- cpu_to_le32(RD_RACT | RD_RFP); + cpu_to_le32(RD_RACT | RD_RFP); } @@ -382,7 +384,7 @@ index 37f3116..99557ea 100644 + } +#endif } - if (mdp->link = PHY_DOWN) { + if (mdp->link == PHY_DOWN) { ctrl_outl((ctrl_inl(ioaddr + ECMR) & ~ECMR_TXF) @@ -735,7 +852,7 @@ static int sh_eth_open(struct net_device *ndev) /* Set the timer to check for link beat. */ diff --git a/a/content_digest b/N1/content_digest index 2f82534..8b05ba6 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,6 +1,6 @@ "From\0Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>\0" "Subject\0[PATCH] net: sh_eth: Add support of SH7763 to sh_eth\0" - "Date\0Thu, 19 Jun 2008 10:25:59 +0000\0" + "Date\0Thu, 19 Jun 2008 19:25:59 +0900\0" "To\0netdev <netdev@vger.kernel.org>" " Nobuhiro Iwamatsu <iwamatsu@nigauri.org>\0" "Cc\0Jeff Garzik <jeff@garzik.org>" @@ -103,7 +103,7 @@ " \tstruct sk_buff *skb;\n" "@@ -201,9 +228,15 @@ static void sh_eth_ring_format(struct net_device *ndev)\n" " \t\tmdp->rx_skbuff[i] = skb;\n" - " \t\tif (skb = NULL)\n" + " \t\tif (skb == NULL)\n" " \t\t\tbreak;\n" "-\t\tskb->dev = ndev;\t/* Mark as being used by this device. */\n" "+\t\tskb->dev = ndev; /* Mark as being used by this device. */\n" @@ -124,7 +124,7 @@ " \t\t/* The size of the buffer is 16 byte boundary. */\n" " \t\trxdesc->buffer_length = (mdp->rx_buf_sz + 16) & ~0x0F;\n" "+\t\t/* Rx descriptor address set */\n" - "+\t\tif (i = 0) {\n" + "+\t\tif (i == 0) {\n" "+\t\t\tctrl_outl((u32)rxdesc, ioaddr + RDLAR);\n" "+#if defined(CONFIG_CPU_SUBTYPE_SH7763)\n" "+\t\t\tctrl_outl((u32)rxdesc, ioaddr + RDFAR);\n" @@ -150,7 +150,7 @@ " \t\ttxdesc = &mdp->tx_ring[i];\n" " \t\ttxdesc->status = cpu_to_le32(TD_TFP);\n" " \t\ttxdesc->buffer_length = 0;\n" - "+\t\tif (i = 0) {\n" + "+\t\tif (i == 0) {\n" "+\t\t\t/* Rx descriptor address set */\n" "+\t\t\tctrl_outl((u32)txdesc, ioaddr + TDLAR);\n" "+#if defined(CONFIG_CPU_SUBTYPE_SH7763)\n" @@ -267,10 +267,10 @@ "+\t\t/* The size of the buffer is 16 byte boundary. */\n" "+\t\trxdesc->buffer_length = (mdp->rx_buf_sz + 16) & ~0x0F;\n" "+\n" - " \t\tif (mdp->rx_skbuff[entry] = NULL) {\n" + " \t\tif (mdp->rx_skbuff[entry] == NULL) {\n" " \t\t\tskb = dev_alloc_skb(mdp->rx_buf_sz);\n" " \t\t\tmdp->rx_skbuff[entry] = skb;\n" - " \t\t\tif (skb = NULL)\n" + " \t\t\tif (skb == NULL)\n" " \t\t\t\tbreak;\t/* Better luck next round. */\n" " \t\t\tskb->dev = ndev;\n" "+#if defined(CONFIG_CPU_SUBTYPE_SH7763)\n" @@ -287,10 +287,12 @@ "-\t\t/* The size of the buffer is 16 byte boundary. */\n" "-\t\trxdesc->buffer_length = (mdp->rx_buf_sz + 16) & ~0x0F;\n" " \t\tif (entry >= RX_RING_SIZE - 1)\n" - " \t\t\trxdesc->status |-\t\t\tcpu_to_le32(RD_RACT | RD_RFP | RC_RDEL);\n" + " \t\t\trxdesc->status |=\n" + "-\t\t\tcpu_to_le32(RD_RACT | RD_RFP | RC_RDEL);\n" "+\t\t\t\tcpu_to_le32(RD_RACT | RD_RFP | RD_RDEL);\n" " \t\telse\n" - " \t\t\trxdesc->status |-\t\t\tcpu_to_le32(RD_RACT | RD_RFP);\n" + " \t\t\trxdesc->status |=\n" + "-\t\t\tcpu_to_le32(RD_RACT | RD_RFP);\n" "+\t\t\t\tcpu_to_le32(RD_RACT | RD_RFP);\n" " \t}\n" "\n" @@ -392,7 +394,7 @@ "+\t\t\t}\n" "+#endif\n" " \t\t}\n" - " \t\tif (mdp->link = PHY_DOWN) {\n" + " \t\tif (mdp->link == PHY_DOWN) {\n" " \t\t\tctrl_outl((ctrl_inl(ioaddr + ECMR) & ~ECMR_TXF)\n" "@@ -735,7 +852,7 @@ static int sh_eth_open(struct net_device *ndev)\n" " \t/* Set the timer to check for link beat. */\n" @@ -1007,4 +1009,4 @@ "-- \n" 1.5.5.1 -3d3df91a34aa960934b4d9ebbde7ae28a50191d84b08b5761e17b1802061b1cb +6ffad7933735088ef60bd6937c676cb7fd45b20a74565ce623303d2a941040a6
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.