From: Sagi Grimberg Date: Sun, 29 Mar 2015 12:52:12 +0000 (+0300) Subject: iser-target: Remove redundant assignment to local variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fd8205e883cd3a7ca4ca86baecf44be3114bafcf;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Nicholas Bellinger --- 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;