aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/fddi/defza.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2018-11-07 12:07:05 +0000
committerDavid S. Miller <davem@davemloft.net>2018-11-07 21:53:31 -0800
commit04453b6b241913f85af013eec187bab776428af5 (patch)
treeb9061369d81d455847276f30177353cb0eafea0b /drivers/net/fddi/defza.c
parentFDDI: defza: Add missing comment closing (diff)
downloadlinux-dev-04453b6b241913f85af013eec187bab776428af5.tar.xz
linux-dev-04453b6b241913f85af013eec187bab776428af5.zip
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: Maciej W. Rozycki <macro@linux-mips.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/fddi/defza.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/fddi/defza.c b/drivers/net/fddi/defza.c
index 79980eeb0e43..bebd0d6d2320 100644
--- a/drivers/net/fddi/defza.c
+++ b/drivers/net/fddi/defza.c
@@ -784,7 +784,7 @@ err_rx:
static void fza_tx_smt(struct net_device *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;
u32 own;
@@ -799,6 +799,7 @@ static void fza_tx_smt(struct net_device *dev)
if (!netif_queue_stopped(dev)) {
if (dev_nit_active(dev)) {
+ struct fza_buffer_tx *skb_data_ptr;
struct sk_buff *skb;
/* Length must be a multiple of 4 as only word