]> err.no Git - linux-2.6/commit
IB/mad: Remove redundant check from smi_check_local_dr_smp()
authorRalph Campbell <ralphc@pathscale.com>
Fri, 3 Feb 2006 22:30:24 +0000 (14:30 -0800)
committerRoland Dreier <rolandd@cisco.com>
Mon, 20 Mar 2006 18:08:11 +0000 (10:08 -0800)
commit5f0b67e0d5c2807337b8fee4aa71b05f4f641534
tree7fa82fdc250aa862366296adb3087e2f30f4d4a1
parentd36f34aadf184d8cc4c240de2b6319ccea8334bb
IB/mad: Remove redundant check from smi_check_local_dr_smp()

smi_check_local_dr_smp() is called only from two places in core/mad.c
It returns 0 or 1.  In smi_check_local_dr_smp(), it checks for
a directed route SMP but this function is only called when the SMP
is a directed route so this is a NOP.

Signed-off-by: Hal Rosenstock <halr@voltaire.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/agent.c