From: Sagi Grimberg Date: Wed, 11 Oct 2017 12:29:08 +0000 (+0300) Subject: nvme-rdma: move assignment to declaration X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0c5b43b9c1fafc5af37915dde6670aaf1224e8cc;p=openwrt%2Fstaging%2Fblogic.git nvme-rdma: move assignment to declaration No need for the extra line for trivial assignments. Signed-off-by: Sagi Grimberg Reviewed-by: Max Gurtovoy Reviewed-by: Johannes Thumshirn Signed-off-by: Christoph Hellwig --- diff --git a/drivers/nvme/host/rdma.c b/drivers/nvme/host/rdma.c index 02b3388af308..221ace23aaa5 100644 --- a/drivers/nvme/host/rdma.c +++ b/drivers/nvme/host/rdma.c @@ -434,11 +434,9 @@ out_err: static void nvme_rdma_destroy_queue_ib(struct nvme_rdma_queue *queue) { - struct nvme_rdma_device *dev; - struct ib_device *ibdev; + struct nvme_rdma_device *dev = queue->device; + struct ib_device *ibdev = dev->dev; - dev = queue->device; - ibdev = dev->dev; rdma_destroy_qp(queue->cm_id); ib_free_cq(queue->ib_cq);