net: mvpp2: remove unused mvpp2_bm_cookie_pool_set() function
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 22 Jun 2017 12:23:19 +0000 (14:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Jun 2017 17:42:56 +0000 (13:42 -0400)
This function is not used in the driver, remove it.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2.c

index 4b3bf37c8038bfc1c951430b1c913d7f7809f9ec..aad763c8b61909c3dce300156da3d75105ffc1b6 100644 (file)
@@ -3917,17 +3917,6 @@ static void *mvpp2_buf_alloc(struct mvpp2_port *port,
        return data;
 }
 
-/* Set pool number in a BM cookie */
-static inline u32 mvpp2_bm_cookie_pool_set(u32 cookie, int pool)
-{
-       u32 bm;
-
-       bm = cookie & ~(0xFF << MVPP2_BM_COOKIE_POOL_OFFS);
-       bm |= ((pool & 0xFF) << MVPP2_BM_COOKIE_POOL_OFFS);
-
-       return bm;
-}
-
 /* Release buffer to BM */
 static inline void mvpp2_bm_pool_put(struct mvpp2_port *port, int pool,
                                     dma_addr_t buf_dma_addr,