md: md_clear_badblocks should return an error code on failure.
authorNeilBrown <neilb@suse.de>
Wed, 28 May 2014 03:39:22 +0000 (13:39 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 29 May 2014 06:59:46 +0000 (16:59 +1000)
Julia Lawall and coccinelle report that md_clear_badblocks always
returns 0, despite appearing to have an error path.
The error path really should return an error code.  ENOSPC is
reasonably appropriate.

Reported-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c

diff --cc drivers/md/md.c
Simple merge