nbd: Return error code directly
authorMarkus Pargmann <mpa@pengutronix.de>
Thu, 2 Apr 2015 08:11:40 +0000 (10:11 +0200)
committerJens Axboe <axboe@fb.com>
Thu, 2 Apr 2015 18:39:26 +0000 (12:39 -0600)
commitdab5313aa4e668d87253dd4289c816cb08f63e52
treee364decf766a469bc66265401a5ab6f9c48d3532
parente018e7570c8b0f9f5a4bb0e1eff9b1e7f768f49b
nbd: Return error code directly

By returning the error code directly, we can avoid the jump label
error_out.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nbd.c