]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/bnx2x/bnx2x.c
bnx2x: remove unused variable
[dpdk.git] / drivers / net / bnx2x / bnx2x.c
index 9d640dace3beab04b0684466a8e33985acf98952..256df127c4c8db9f98093a329baee1bb94575eb4 100644 (file)
@@ -2331,15 +2331,6 @@ static void bnx2x_set_fp_rx_buf_size(struct bnx2x_softc *sc)
                /* get the Rx buffer size for RX frames */
                sc->fp[i].rx_buf_size =
                    (IP_HEADER_ALIGNMENT_PADDING + ETH_OVERHEAD + sc->mtu);
-
-               /* get the mbuf allocation size for RX frames */
-               if (sc->fp[i].rx_buf_size <= MCLBYTES) {
-                       sc->fp[i].mbuf_alloc_size = MCLBYTES;
-               } else if (sc->fp[i].rx_buf_size <= BNX2X_PAGE_SIZE) {
-                       sc->fp[i].mbuf_alloc_size = PAGE_SIZE;
-               } else {
-                       sc->fp[i].mbuf_alloc_size = MJUM9BYTES;
-               }
        }
 }