]> err.no Git - linux-2.6/commit
IB/mad: Remove redundant NULL pointer check in ib_mad_recv_done_handler()
authorRalph Campbell <ralph.campbell@qlogic.com>
Tue, 23 Oct 2007 22:04:15 +0000 (15:04 -0700)
committerRoland Dreier <rolandd@cisco.com>
Fri, 25 Jan 2008 22:15:25 +0000 (14:15 -0800)
commit3828ff457a694f97f88f6978bea428199df0a690
tree0ded699f96774f42b64828417d688cc88379db04
parent8d8293cfb38b042835eeded7c1d90f75ca243e87
IB/mad: Remove redundant NULL pointer check in ib_mad_recv_done_handler()

In ib_mad_recv_done_handler(), the response pointer is checked for
NULL after allocating it.  It is then checked again in the local
process_mad() path but there is no possibility of it changing in
between.

Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Acked-by: Hal Rosenstock <hal@xsigo.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/mad.c