From mboxrd@z Thu Jan 1 00:00:00 1970 From: SF Markus Elfring Subject: [PATCH 00/14] RDMA/cxgb: Fine-tuning for several function implementations Date: Wed, 8 Feb 2017 22:10:06 +0100 Message-ID: <0aff92fa-2891-333a-2e1e-ca309db2ec72@users.sourceforge.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Sender: linux-kernel-owner@vger.kernel.org To: linux-rdma@vger.kernel.org, Doug Ledford , Hal Rosenstock , Sean Hefty , Steve Wise Cc: LKML , kernel-janitors@vger.kernel.org List-Id: linux-rdma@vger.kernel.org From: Markus Elfring Date: Wed, 8 Feb 2017 22:00:10 +0100 Several update suggestions were taken into account from static source code analysis. Markus Elfring (14): Use kcalloc() in cxio_create_qp() Rename jump labels in cxio_create_qp() Use kcalloc() in two functions Use common error handling code in recover_queues() Return an error code only as a constant in ep_open() Return an error code only as a constant in stag_open() Adjust three checks for null pointers Adjust construction of two error messages in recover_lost_dbs() Use common error handling code in recover_lost_dbs() Use kmalloc_array() in c4iw_id_table_alloc() Use kcalloc() in create_qp() Delete an unnecessary variable initialisation in create_qp() Rename jump labels in c4iw_create_qp() Rename jump labels in rdma_init() drivers/infiniband/hw/cxgb3/cxio_hal.c | 20 ++++---- drivers/infiniband/hw/cxgb4/device.c | 83 +++++++++++++++------------------- drivers/infiniband/hw/cxgb4/id_table.c | 5 +- drivers/infiniband/hw/cxgb4/qp.c | 48 ++++++++++---------- 4 files changed, 75 insertions(+), 81 deletions(-) -- 2.11.1