Commit 04453b6b authored by Maciej W. Rozycki's avatar Maciej W. Rozycki Committed by David S. Miller

FDDI: defza: Move SMT Tx data buffer declaration next to its skb

Move the temporary data buffer used when tapping into the SMT Tx queue
from the outer function level into the conditional block it's actually
used in and its containing skb is also declared, making the structure of
code better.
Signed-off-by: default avatarMaciej W. Rozycki <macro@linux-mips.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5f5fae37
...@@ -784,7 +784,7 @@ static void fza_rx(struct net_device *dev) ...@@ -784,7 +784,7 @@ static void fza_rx(struct net_device *dev)
static void fza_tx_smt(struct net_device *dev) static void fza_tx_smt(struct net_device *dev)
{ {
struct fza_private *fp = netdev_priv(dev); struct fza_private *fp = netdev_priv(dev);
struct fza_buffer_tx __iomem *smt_tx_ptr, *skb_data_ptr; struct fza_buffer_tx __iomem *smt_tx_ptr;
int i, len; int i, len;
u32 own; u32 own;
...@@ -799,6 +799,7 @@ static void fza_tx_smt(struct net_device *dev) ...@@ -799,6 +799,7 @@ static void fza_tx_smt(struct net_device *dev)
if (!netif_queue_stopped(dev)) { if (!netif_queue_stopped(dev)) {
if (dev_nit_active(dev)) { if (dev_nit_active(dev)) {
struct fza_buffer_tx *skb_data_ptr;
struct sk_buff *skb; struct sk_buff *skb;
/* Length must be a multiple of 4 as only word /* Length must be a multiple of 4 as only word
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment