projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
172369c
)
iser-target: Remove redundant assignment to local variable
author
Sagi Grimberg
<sagig@mellanox.com>
Sun, 29 Mar 2015 12:52:12 +0000
(15:52 +0300)
committer
Nicholas Bellinger
<nab@linux-iscsi.org>
Wed, 8 Apr 2015 06:27:53 +0000
(23:27 -0700)
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>
drivers/infiniband/ulp/isert/ib_isert.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/ulp/isert/ib_isert.c
b/drivers/infiniband/ulp/isert/ib_isert.c
index db5460ad12f368c61b2c32c6cbfd90456712a88e..0bab74bc28e948d77ce22204c6aac211f249a51f 100644
(file)
--- 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;