From: Bart Van Assche Date: Mon, 18 May 2015 11:26:17 +0000 (+0200) Subject: IB/srp: Remove !ch->target tests from the reconnect code X-Git-Tag: omap-for-v4.2/fixes-rc1^2~152^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbac5ccff43cdcb5fc9346669ec67ea47fca3de0;p=pandora-kernel.git IB/srp: Remove !ch->target tests from the reconnect code Remove the !ch->target tests from the reconnect code. These tests are not needed: upon entry of srp_rport_reconnect() it is guaranteed that all ch->target pointers are non-NULL. None of the functions srp_new_cm_id(), srp_finish_req(), srp_create_ch_ib() nor srp_connect_ch() modifies this pointer. srp_free_ch_ib() is never called concurrently with srp_rport_reconnect(). Signed-off-by: Bart Van Assche Reviewed-by: Sagi Grimberg Cc: Sebastian Parschauer Signed-off-by: Doug Ledford --- Reading git-diff-tree failed