Commit bc638ea
net: fec: remove last_bdp from fec_enet_txq_xmit_frame()
The last_bdp is initialized to bdp, and both last_bdp and bdp are
not changed. That is to say that last_bdp and bdp are always equal.
So bdp can be used directly.
Signed-off-by: Wei Fang <wei.fang@nxp.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20230529022615.669589-1-wei.fang@nxp.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>1 parent bc590b4 commit bc638ea
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3770 | 3770 | | |
3771 | 3771 | | |
3772 | 3772 | | |
3773 | | - | |
| 3773 | + | |
3774 | 3774 | | |
3775 | 3775 | | |
3776 | 3776 | | |
| |||
3782 | 3782 | | |
3783 | 3783 | | |
3784 | 3784 | | |
3785 | | - | |
3786 | 3785 | | |
3787 | 3786 | | |
3788 | 3787 | | |
| |||
3810 | 3809 | | |
3811 | 3810 | | |
3812 | 3811 | | |
3813 | | - | |
3814 | 3812 | | |
3815 | 3813 | | |
3816 | 3814 | | |
| |||
3825 | 3823 | | |
3826 | 3824 | | |
3827 | 3825 | | |
3828 | | - | |
| 3826 | + | |
3829 | 3827 | | |
3830 | 3828 | | |
3831 | 3829 | | |
| |||
0 commit comments