IB/qib: Fix for broken sparse warning fix
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Thu, 24 Jan 2013 18:59:34 +0000 (18:59 +0000)
committerRoland Dreier <roland@purestorage.com>
Tue, 5 Feb 2013 17:43:09 +0000 (09:43 -0800)
commitd359f35430c4ea4dd4e24d809aeaeff1fa54c314
tree8fabd35e3e2c55039b7479aec24821e8969a07a7
parent949db153b6466c6f7cad5a427ecea94985927311
IB/qib: Fix for broken sparse warning fix

Commit 1fb9fed6d489 ("IB/qib: Fix QP RCU sparse warning") broke QP
hash list deletion in qp_remove() badly.

This patch restores the former for loop behavior, while still fixing
the sparse warnings.

Cc: <stable@vger.kernel.org>
Reviewed-by: Gary Leshner <gary.s.leshner@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/qib/qib_qp.c