diff options
author | Bart Van Assche <bart.vanassche@wdc.com> | 2018-07-05 13:51:03 -0400 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-07-09 14:11:22 -0400 |
commit | f8c2d2280cf67cd85cff6b42c989bbf1c7d0af61 (patch) | |
tree | 69c9893b41a1da39727beffa15bcad08d67d0904 /drivers/infiniband/core/cache.c | |
parent | 28e39894ed4fecd19956ae672a312f65419bd703 (diff) |
RDMA/core: Remove set-but-not-used variables
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/core/cache.c')
-rw-r--r-- | drivers/infiniband/core/cache.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/infiniband/core/cache.c b/drivers/infiniband/core/cache.c index c5fa67c72f23..0bee1f4b914e 100644 --- a/drivers/infiniband/core/cache.c +++ b/drivers/infiniband/core/cache.c | |||
@@ -824,12 +824,9 @@ void ib_cache_gid_set_default_gid(struct ib_device *ib_dev, u8 port, | |||
824 | { | 824 | { |
825 | union ib_gid gid = { }; | 825 | union ib_gid gid = { }; |
826 | struct ib_gid_attr gid_attr; | 826 | struct ib_gid_attr gid_attr; |
827 | struct ib_gid_table *table; | ||
828 | unsigned int gid_type; | 827 | unsigned int gid_type; |
829 | unsigned long mask; | 828 | unsigned long mask; |
830 | 829 | ||
831 | table = rdma_gid_table(ib_dev, port); | ||
832 | |||
833 | mask = GID_ATTR_FIND_MASK_GID_TYPE | | 830 | mask = GID_ATTR_FIND_MASK_GID_TYPE | |
834 | GID_ATTR_FIND_MASK_DEFAULT | | 831 | GID_ATTR_FIND_MASK_DEFAULT | |
835 | GID_ATTR_FIND_MASK_NETDEV; | 832 | GID_ATTR_FIND_MASK_NETDEV; |
@@ -1293,13 +1290,10 @@ static void ib_cache_update(struct ib_device *device, | |||
1293 | struct ib_pkey_cache *pkey_cache = NULL, *old_pkey_cache; | 1290 | struct ib_pkey_cache *pkey_cache = NULL, *old_pkey_cache; |
1294 | int i; | 1291 | int i; |
1295 | int ret; | 1292 | int ret; |
1296 | struct ib_gid_table *table; | ||
1297 | 1293 | ||
1298 | if (!rdma_is_port_valid(device, port)) | 1294 | if (!rdma_is_port_valid(device, port)) |
1299 | return; | 1295 | return; |
1300 | 1296 | ||
1301 | table = rdma_gid_table(device, port); | ||
1302 | |||
1303 | tprops = kmalloc(sizeof *tprops, GFP_KERNEL); | 1297 | tprops = kmalloc(sizeof *tprops, GFP_KERNEL); |
1304 | if (!tprops) | 1298 | if (!tprops) |
1305 | return; | 1299 | return; |