[PATCH 00/14] RDMA/cxgb: Fine-tuning for several function implementations

From: SF Markus Elfring
Date: Wed Feb 08 2017 - 16:30:15 EST


From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
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