blkdev: Simple cleanup in blkdev_issue_zeroout()
authorLukas Czerner <lczerner@redhat.com>
Sat, 7 May 2011 01:26:28 +0000 (19:26 -0600)
committerJens Axboe <jaxboe@fusionio.com>
Sat, 7 May 2011 01:26:28 +0000 (19:26 -0600)
commit5baebe5c86acd6100536a466905880529f79cf1a
tree6c7b4e6e170037981ea1bc094547034d3281c344
parent5dba3089ed03f84b84c6c739df8330112f04a15d
blkdev: Simple cleanup in blkdev_issue_zeroout()

In blkdev_issue_zeroout() we are submitting regular WRITE bios, so we do
not need to check for -EOPNOTSUPP specifically in case of error. Also
there is no need to have label submit: because there is no way to jump
out from the while cycle without an error and we really want to exit,
rather than try again. And also remove the check for (sz == 0) since at
that point sz can never be zero.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
CC: Dmitry Monakhov <dmonakhov@openvz.org>
CC: Jens Axboe <jaxboe@fusionio.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
block/blk-lib.c