diff options
author | Sagi Grimberg <sagig@mellanox.com> | 2015-03-29 14:52:12 +0200 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-04-08 08:27:53 +0200 |
commit | fd8205e883cd3a7ca4ca86baecf44be3114bafcf (patch) | |
tree | 16feb3672ee783e8ba344ce8dd2a425339792143 /drivers/infiniband/ulp/isert/ib_isert.c | |
parent | iser-target: Introduce isert_[alloc|free]_comps (diff) | |
download | linux-fd8205e883cd3a7ca4ca86baecf44be3114bafcf.tar.xz linux-fd8205e883cd3a7ca4ca86baecf44be3114bafcf.zip |
iser-target: Remove redundant assignment to local variable
No need to keep a local ib_dev as a device pointer.
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/infiniband/ulp/isert/ib_isert.c')
-rw-r--r-- | drivers/infiniband/ulp/isert/ib_isert.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp/isert/ib_isert.c index db5460ad12f3..0bab74bc28e9 100644 --- a/drivers/infiniband/ulp/isert/ib_isert.c +++ b/drivers/infiniband/ulp/isert/ib_isert.c @@ -346,12 +346,11 @@ out_cq: static int isert_create_device_ib_res(struct isert_device *device) { - struct ib_device *ib_dev = device->ib_device; struct ib_device_attr *dev_attr; - int ret = 0; + int ret; dev_attr = &device->dev_attr; - ret = isert_query_device(ib_dev, dev_attr); + ret = isert_query_device(device->ib_device, dev_attr); if (ret) return ret; |