mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 16:07:39 +00:00
RDMA/rxe: Remove the unused xmit_errors member
The member variable xmit_errors can be replaced with rxe_counter_inc(rxe, RXE_CNT_SEND_ERR) Link: https://lore.kernel.org/r/20211216054842.1099428-1-yanjun.zhu@linux.dev Signed-off-by: Zhu Yanjun <yanjun.zhu@linux.dev> Reviewed-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
This commit is contained in:
parent
47920e4d2c
commit
8803836fe7
2 changed files with 0 additions and 3 deletions
|
@ -440,7 +440,6 @@ int rxe_xmit_packet(struct rxe_qp *qp, struct rxe_pkt_info *pkt,
|
|||
else
|
||||
err = rxe_send(skb, pkt);
|
||||
if (err) {
|
||||
rxe->xmit_errors++;
|
||||
rxe_counter_inc(rxe, RXE_CNT_SEND_ERR);
|
||||
return err;
|
||||
}
|
||||
|
|
|
@ -392,8 +392,6 @@ struct rxe_dev {
|
|||
|
||||
struct net_device *ndev;
|
||||
|
||||
int xmit_errors;
|
||||
|
||||
struct rxe_pool uc_pool;
|
||||
struct rxe_pool pd_pool;
|
||||
struct rxe_pool ah_pool;
|
||||
|
|
Loading…
Reference in a new issue