IB/hfi1: Remove unnecessary initialization from tx request
authorSebastian Sanchez <sebastian.sanchez@intel.com>
Fri, 12 May 2017 16:19:36 +0000 (09:19 -0700)
committerDoug Ledford <dledford@redhat.com>
Tue, 27 Jun 2017 20:56:33 +0000 (16:56 -0400)
commitceb26569af5bc33a8f47b755fd64f12c81801ce8
tree3ce21d8e0b6e1605ea32026ea265f3a51d169f2e
parent8c32c4f2f7ff91152e09ce57a1bcb75596a71933
IB/hfi1: Remove unnecessary initialization from tx request

The tx request is unnecessarily initialized in the hot
code path with memset(), however, there's no need to do
this as most fields are initialized later on. this
initialization shows to be costly in the profile.
Remove unnecessary initialization from tx request and make
sure all variables are initialized properly.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Sebastian Sanchez <sebastian.sanchez@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/user_sdma.c