mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 18:04:38 -04:00
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>
This commit is contained in:
committed by
Nicholas Bellinger
parent
172369c570
commit
fd8205e883
@@ -346,12 +346,11 @@ isert_alloc_comps(struct isert_device *device,
|
||||
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user