IB/srp: Use list_first_entry()
Use the list_first_entry() macro in ib_srp instead of open-coding the equivalent, which makes the source code slightly more descriptive. The list_first_entry() macro itself was introduced in kernel 2.6.22. Signed-off-by:Bart Van Assche <bvanassche@acm.org> Signed-off-by:
David Dillow <dillowda@ornl.gov> Signed-off-by:
Roland Dreier <rolandd@cisco.com>
Showing
Please register or sign in to comment