OSDN Git Service

dpaa_eth: remove duplicate initialization
authorCamelia Groza <camelia.groza@nxp.com>
Wed, 14 Mar 2018 13:37:30 +0000 (08:37 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Mar 2018 17:16:23 +0000 (13:16 -0400)
The fd_format has already been initialized at this point.

Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c

index 3af5e0c..627f7f7 100644 (file)
@@ -2278,7 +2278,6 @@ static enum qman_cb_dqrr_result rx_default_dqrr(struct qman_portal *portal,
        vaddr = phys_to_virt(addr);
        prefetch(vaddr + qm_fd_get_offset(fd));
 
-       fd_format = qm_fd_get_format(fd);
        /* The only FD types that we may receive are contig and S/G */
        WARN_ON((fd_format != qm_fd_contig) && (fd_format != qm_fd_sg));