On Fri, Feb 18, 2022 at 07:05:17PM +0800, Wenpeng Liang wrote: > From: Chengchang Tang <tangchengchang@xxxxxxxxxx> > > Remove duplicate code for creating and destroying hardware contexts via > mailbox. > > Signed-off-by: Chengchang Tang <tangchengchang@xxxxxxxxxx> > Signed-off-by: Wenpeng Liang <liangwenpeng@xxxxxxxxxx> > --- > drivers/infiniband/hw/hns/hns_roce_cmd.c | 12 +++++++++ > drivers/infiniband/hw/hns/hns_roce_cmd.h | 5 ++++ > drivers/infiniband/hw/hns/hns_roce_cq.c | 8 +++--- > drivers/infiniband/hw/hns/hns_roce_device.h | 2 -- > drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 4 +-- > drivers/infiniband/hw/hns/hns_roce_mr.c | 29 ++++++--------------- > drivers/infiniband/hw/hns/hns_roce_srq.c | 20 +++----------- > 7 files changed, 35 insertions(+), 45 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky <leonro@xxxxxxxxxx>