mirror of https://gitee.com/openkylin/linux.git
dpaa_eth: remove duplicate initialization
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>
This commit is contained in:
parent
88075256ee
commit
565186362b
|
@ -2278,7 +2278,6 @@ static enum qman_cb_dqrr_result rx_default_dqrr(struct qman_portal *portal,
|
||||||
vaddr = phys_to_virt(addr);
|
vaddr = phys_to_virt(addr);
|
||||||
prefetch(vaddr + qm_fd_get_offset(fd));
|
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 */
|
/* 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));
|
WARN_ON((fd_format != qm_fd_contig) && (fd_format != qm_fd_sg));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue