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>
Fri, 13 Dec 2019 07:43:29 +0000 (08:43 +0100)
commit526152a23915a1bc8380bf11e497548b8b03968d
tree3544e7176329f4e590c72243559b7132c3e9dcda
parent7a5e10c1d67150eeeb31928db5df9de4f038db5b
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