md/raid0: Fix an error message in raid0_make_request()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 21 Sep 2019 06:00:31 +0000 (09:00 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Dec 2019 19:39:23 +0000 (20:39 +0100)
commit8f873b8b1f78a329711b88972c1da53440d6d84a
tree467b48317395ab4a922a30de471b9b004b2e35cf
parent7dc871b7257a7afe05d1a6f145cbd6d69efb6800
md/raid0: Fix an error message in raid0_make_request()

[ Upstream commit e3fc3f3d0943b126f76b8533960e4168412d9e5a ]

The first argument to WARN() is supposed to be a condition.  The
original code will just print the mdname() instead of the full warning
message.

Fixes: c84a1372df92 ("md/raid0: avoid RAID0 data corruption due to layout confusion.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/md/raid0.c