md/raid10: use correct limit variable
commit774cb096b98e8af73bd9f3b9b82abe8786289929
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 11 Oct 2012 03:20:58 +0000 (11 14:20 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Oct 2012 16:32:41 +0000 (21 09:32 -0700)
tree09e4ca0d523b613736a5d0e1dd38c640bf1531fb
parentfd39be7ff6f81f2dc91ba6e5f87944abef5b4802
md/raid10: use correct limit variable

commit 91502f099dfc5a1e8812898e26ee280713e1d002 upstream.

Clang complains that we are assigning a variable to itself.  This should
be using bad_sectors like the similar earlier check does.

Bug has been present since 3.1-rc1.  It is minor but could
conceivably cause corruption or other bad behaviour.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/raid10.c