From a462b950834945db22f94aa98181f861eff0574d Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 13 Jun 2017 08:07:33 -0700 Subject: block: Dedicated error code fixups This patch fixes two sparse warnings introduced by the "dedicated error codes for the block layer V3" patch series. These changes have not been tested. Signed-off-by: Bart Van Assche Reviewed-by: Christoph Hellwig Signed-off-by: Jens Axboe --- block/t10-pi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'block/t10-pi.c') diff --git a/block/t10-pi.c b/block/t10-pi.c index 350b3cbcf9e5..3416dadf7b15 100644 --- a/block/t10-pi.c +++ b/block/t10-pi.c @@ -91,7 +91,7 @@ static blk_status_t t10_pi_verify(struct blk_integrity_iter *iter, "(rcvd %u)\n", iter->disk_name, (unsigned long long) iter->seed, be32_to_cpu(pi->ref_tag)); - return -EILSEQ; + return BLK_STS_PROTECTION; } break; case 3: -- cgit