You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2017/12/01 19:46:21 UTC

[GitHub] ccollins476ad closed pull request #688: os_mbuf_pool - Remove unused member

ccollins476ad closed pull request #688: os_mbuf_pool - Remove unused member
URL: https://github.com/apache/mynewt-core/pull/688
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/kernel/os/include/os/os_mbuf.h b/kernel/os/include/os/os_mbuf.h
index 314a2ebe7..bfb500310 100644
--- a/kernel/os/include/os/os_mbuf.h
+++ b/kernel/os/include/os/os_mbuf.h
@@ -40,10 +40,6 @@ struct os_mbuf_pool {
      * mempool block, minus the mbuf header
      */
     uint16_t omp_databuf_len;
-    /**
-     * Total number of memblock's allocated in this mempool.
-     */
-    uint16_t omp_mbuf_count;
     /**
      * The memory pool which to allocate mbufs out of
      */
diff --git a/kernel/os/src/os_mbuf.c b/kernel/os/src/os_mbuf.c
index 52c81ae5a..0a1cb968b 100644
--- a/kernel/os/src/os_mbuf.c
+++ b/kernel/os/src/os_mbuf.c
@@ -340,7 +340,6 @@ os_mbuf_pool_init(struct os_mbuf_pool *omp, struct os_mempool *mp,
                   uint16_t buf_len, uint16_t nbufs)
 {
     omp->omp_databuf_len = buf_len - sizeof(struct os_mbuf);
-    omp->omp_mbuf_count = nbufs;
     omp->omp_pool = mp;
 
     return (0);


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services