> @@ -2738,6 +2745,7 @@ static void init_mad_qp(struct ib_mad_port_private *port_priv, > spin_lock_init(&qp_info->snoop_lock); > qp_info->snoop_table = NULL; > qp_info->snoop_table_size = 0; > + qp_info->qp = NULL; > atomic_set(&qp_info->snoop_count, 0); > }
This bit isn't needed, is it? qp_info is in memory allocated with kzalloc. (We could get rid of the other = 0 / = NULL lines too) - R. -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
