From: Eli Cohen Date: Mon, 8 Feb 2010 11:40:37 +0000 (+0000) Subject: IB/core: Fix and clean up ib_ud_header_init() X-Git-Tag: v2.6.34-rc1~225^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=920d706c892e8f8cfff95f46aeb95fc6344f0bd5;p=pandora-kernel.git IB/core: Fix and clean up ib_ud_header_init() ib_ud_header_init() first clears header and then fills up the various fields. Later on, it tests header->immediate_present, which it has already cleared, so the condition is always false. Fix this by adding an immediate_present parameter and setting header->immediate_present as is done with grh_present. Also remove unused calculation of header_len. Signed-off-by: Eli Cohen Signed-off-by: Roland Dreier --- Reading git-diff-tree failed