RDMA/irdma: Remove the unnecessary variable saddr
authorZhu Yanjun <yanjun.zhu@linux.dev>
Wed, 23 Feb 2022 02:42:51 +0000 (21:42 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 24 Feb 2022 00:38:56 +0000 (20:38 -0400)
Firstly the variable saddr was to check the type of a network. Now the
variable net_type is used to do the same work. So it is removed.

Link: https://lore.kernel.org/r/20220223024252.3873736-3-yanjun.zhu@linux.dev
Signed-off-by: Zhu Yanjun <yanjun.zhu@linux.dev>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/irdma/verbs.c
drivers/infiniband/hw/irdma/verbs.h

index 0e160d6a73b4f0fd7b8d8dfb806b2f209de5a185..84be23b44e28ac95ba30890df982dd54dab7527f 100644 (file)
@@ -4105,7 +4105,6 @@ static int irdma_create_ah(struct ib_ah *ibah,
        struct irdma_ah_info *ah_info;
        struct irdma_create_ah_resp uresp;
        union {
-               struct sockaddr saddr;
                struct sockaddr_in saddr_in;
                struct sockaddr_in6 saddr_in6;
        } sgid_addr, dgid_addr;
index d0fdef8d09eada33149faed94ed2633577c7479b..d2d4a7e5f954edfd471ade414bc68751ff0d97a2 100644 (file)
@@ -29,7 +29,6 @@ struct irdma_av {
        u8 macaddr[16];
        struct rdma_ah_attr attrs;
        union {
-               struct sockaddr saddr;
                struct sockaddr_in saddr_in;
                struct sockaddr_in6 saddr_in6;
        } sgid_addr, dgid_addr;