summaryrefslogtreecommitdiff
path: root/nuttx/net/devif
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2015-01-17 05:59:13 -0600
committerGregory Nutt <gnutt@nuttx.org>2015-01-17 05:59:13 -0600
commitaf30b21775df6fcf7671b9bb798c5e2279405eac (patch)
tree27251770aa409907b946a083f12e0c6da7369c8e /nuttx/net/devif
parent8ce635d3d971bb6968ca52c1194427dc8c026fdd (diff)
downloadpx4-nuttx-af30b21775df6fcf7671b9bb798c5e2279405eac.tar.gz
px4-nuttx-af30b21775df6fcf7671b9bb798c5e2279405eac.tar.bz2
px4-nuttx-af30b21775df6fcf7671b9bb798c5e2279405eac.zip
Networking: Remove field d_sndata from the device structure. It is the same as d_appdata and unnecessary
Diffstat (limited to 'nuttx/net/devif')
-rw-r--r--nuttx/net/devif/devif_iobsend.c4
-rw-r--r--nuttx/net/devif/devif_pktsend.c2
-rw-r--r--nuttx/net/devif/devif_send.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/net/devif/devif_iobsend.c b/nuttx/net/devif/devif_iobsend.c
index 27e1adcbc..f1f0248b6 100644
--- a/nuttx/net/devif/devif_iobsend.c
+++ b/nuttx/net/devif/devif_iobsend.c
@@ -103,13 +103,13 @@ void devif_iob_send(FAR struct net_driver_s *dev, FAR struct iob_s *iob,
/* Copy the data from the I/O buffer chain to the device buffer */
- iob_copyout(dev->d_snddata, iob, len, offset);
+ iob_copyout(dev->d_appdata, iob, len, offset);
dev->d_sndlen = len;
#ifdef CONFIG_NET_TCP_WRBUFFER_DUMP
/* Dump the outgoing device buffer */
- lib_dumpbuffer("devif_iob_send", dev->d_snddata, len);
+ lib_dumpbuffer("devif_iob_send", dev->d_appdata, len);
#endif
}
diff --git a/nuttx/net/devif/devif_pktsend.c b/nuttx/net/devif/devif_pktsend.c
index 1dc1a41a6..d03548eda 100644
--- a/nuttx/net/devif/devif_pktsend.c
+++ b/nuttx/net/devif/devif_pktsend.c
@@ -87,7 +87,7 @@
* an xmit or poll request from the the network interface driver.
*
* This is almost identical to calling devif_send() except that the data to
- * be sent is copied into dev->d_buf (vs. dev->d_snddata), since there is
+ * be sent is copied into dev->d_buf (vs. dev->d_appdata), since there is
* no header on the data.
*
* Assumptions:
diff --git a/nuttx/net/devif/devif_send.c b/nuttx/net/devif/devif_send.c
index 1738c28e5..0409ba3da 100644
--- a/nuttx/net/devif/devif_send.c
+++ b/nuttx/net/devif/devif_send.c
@@ -96,6 +96,6 @@ void devif_send(struct net_driver_s *dev, const void *buf, int len)
{
DEBUGASSERT(dev && len > 0 && len < NET_DEV_MTU(dev));
- memcpy(dev->d_snddata, buf, len);
+ memcpy(dev->d_appdata, buf, len);
dev->d_sndlen = len;
}