ibcore: Make sure GID index variable gets initialized.
Submitted by: hselasky@ Approved by: hselasky (mentor) MFC after: 1 week Sponsored by: Mellanox Technologies
This commit is contained in:
parent
452d59e130
commit
f628150b6c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=341521
@ -458,7 +458,7 @@ int ib_init_ah_from_wc(struct ib_device *device, u8 port_num,
|
||||
struct ib_ah_attr *ah_attr)
|
||||
{
|
||||
u32 flow_class;
|
||||
u16 gid_index;
|
||||
u16 gid_index = 0;
|
||||
int ret;
|
||||
enum rdma_network_type net_type = RDMA_NETWORK_IB;
|
||||
enum ib_gid_type gid_type = IB_GID_TYPE_IB;
|
||||
@ -524,8 +524,6 @@ int ib_init_ah_from_wc(struct ib_device *device, u8 port_num,
|
||||
&gid_index);
|
||||
if (ret)
|
||||
return ret;
|
||||
} else {
|
||||
gid_index = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user