From: Zhu Yanjun <yanjun.zhu@xxxxxxxxx> The member variable net_type already exists. Now it is used to check network type. As such, the variable saddr is redundant. So it is removed. The union irdma_sockaddr is used in several functions. So it is moved into header file. Zhu Yanjun (3): RDMA/irdma: Use net_type to check network type RDMA/irdma: Remove the unnecessary variable saddr RDMA/irdma: Move union irdma_sockaddr to header file drivers/infiniband/hw/irdma/verbs.c | 26 ++++++-------------------- drivers/infiniband/hw/irdma/verbs.h | 12 +++++++----- 2 files changed, 13 insertions(+), 25 deletions(-) -- V1-->V2: Modify the commit log. -- 2.27.0