IB/srpt: Inline srpt_get_ch_state()
authorBart Van Assche <bart.vanassche@sandisk.com>
Thu, 11 Feb 2016 19:04:43 +0000 (11:04 -0800)
committerDoug Ledford <dledford@redhat.com>
Mon, 29 Feb 2016 22:12:35 +0000 (17:12 -0500)
commit33912d73487899bfbfc8edb5f3d586ba2b15ceb9
tree7a989f46a1e55eda67cb7b01f883e696f0cc1328
parentf68cba4e9f7cdd3808631af286cc3244c5e57dab
IB/srpt: Inline srpt_get_ch_state()

The callers of srpt_get_ch_state() can access ch->state safely without
using locking. Hence inline this function.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Cc: Alex Estrin <alex.estrin@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srpt/ib_srpt.c