Commit f8c2d228 authored by Bart Van Assche's avatar Bart Van Assche Committed by Jason Gunthorpe

RDMA/core: Remove set-but-not-used variables

Signed-off-by: default avatarBart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 28e39894
...@@ -824,12 +824,9 @@ void ib_cache_gid_set_default_gid(struct ib_device *ib_dev, u8 port, ...@@ -824,12 +824,9 @@ void ib_cache_gid_set_default_gid(struct ib_device *ib_dev, u8 port,
{ {
union ib_gid gid = { }; union ib_gid gid = { };
struct ib_gid_attr gid_attr; struct ib_gid_attr gid_attr;
struct ib_gid_table *table;
unsigned int gid_type; unsigned int gid_type;
unsigned long mask; unsigned long mask;
table = rdma_gid_table(ib_dev, port);
mask = GID_ATTR_FIND_MASK_GID_TYPE | mask = GID_ATTR_FIND_MASK_GID_TYPE |
GID_ATTR_FIND_MASK_DEFAULT | GID_ATTR_FIND_MASK_DEFAULT |
GID_ATTR_FIND_MASK_NETDEV; GID_ATTR_FIND_MASK_NETDEV;
...@@ -1293,13 +1290,10 @@ static void ib_cache_update(struct ib_device *device, ...@@ -1293,13 +1290,10 @@ static void ib_cache_update(struct ib_device *device,
struct ib_pkey_cache *pkey_cache = NULL, *old_pkey_cache; struct ib_pkey_cache *pkey_cache = NULL, *old_pkey_cache;
int i; int i;
int ret; int ret;
struct ib_gid_table *table;
if (!rdma_is_port_valid(device, port)) if (!rdma_is_port_valid(device, port))
return; return;
table = rdma_gid_table(device, port);
tprops = kmalloc(sizeof *tprops, GFP_KERNEL); tprops = kmalloc(sizeof *tprops, GFP_KERNEL);
if (!tprops) if (!tprops)
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment