Skip to content

Commit e32d2d7

Browse files
Leon Romanovskydledford
authored andcommitted
RDMA/bnxt_re: Remove unused vlan_tag variable
The Broadcom driver produces the following compilation warning drivers/infiniband/hw/bnxt_re/ib_verbs.c: In function ‘bnxt_re_create_ah’: drivers/infiniband/hw/bnxt_re/ib_verbs.c:668:6: warning: variable ‘vlan_tag’ set but not used [-Wunused-but-set-variable] u16 vlan_tag; Let's remove it till vlan_tag will be implemented properly. Cc: Selvin Xavier <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
1 parent b1383aa commit e32d2d7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

drivers/infiniband/hw/bnxt_re/ib_verbs.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,6 @@ struct ib_ah *bnxt_re_create_ah(struct ib_pd *ib_pd,
665665
struct bnxt_re_ah *ah;
666666
const struct ib_global_route *grh = rdma_ah_read_grh(ah_attr);
667667
int rc;
668-
u16 vlan_tag;
669668
u8 nw_type;
670669

671670
struct ib_gid_attr sgid_attr;
@@ -711,11 +710,8 @@ struct ib_ah *bnxt_re_create_ah(struct ib_pd *ib_pd,
711710
grh->sgid_index);
712711
goto fail;
713712
}
714-
if (sgid_attr.ndev) {
715-
if (is_vlan_dev(sgid_attr.ndev))
716-
vlan_tag = vlan_dev_vlan_id(sgid_attr.ndev);
713+
if (sgid_attr.ndev)
717714
dev_put(sgid_attr.ndev);
718-
}
719715
/* Get network header type for this GID */
720716
nw_type = ib_gid_to_network_type(sgid_attr.gid_type, &sgid);
721717
switch (nw_type) {

0 commit comments

Comments
 (0)