staging/rdma/hfi1: fix 0-day syntax error
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Thu, 18 Feb 2016 19:11:59 +0000 (11:11 -0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 11 Mar 2016 01:45:43 +0000 (20:45 -0500)
commit6b5c5213e57453c228f7695d5d889aa4c84272c3
tree67c88e797cd9fa5ed99e1a48962eb5ad1a9576c4
parent05d6ac1d8268915593480a34926f386970a9d720
staging/rdma/hfi1: fix 0-day syntax error

Setting CONFIG_HFI1_DEBUG_SDMA_ORDER causes a syntax error:
sdma.c: In function ‘complete_tx’:
sdma.c:370: error: ‘txp’ undeclared (first use in
this function)
sdma.c:370: error: (Each undeclared identifier is reported only once
sdma.c:370: error: for each function it appears in.)

Adjust code under ifdef to reference the tx properly.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/sdma.c