block/rnbd-srv: init ret with 0 instead of -EPERM
authorGuoqing Jiang <guoqing.jiang@linux.dev>
Wed, 24 May 2023 07:00:24 +0000 (15:00 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Jun 2023 01:48:42 +0000 (19:48 -0600)
commit6a12d5379508d530a73140fc7d5502551558ced5
treeebfd6b9257e57023fd4fb2e4658443f75833d605
parent3ecdbf91513511fae49eb0cfa9f39f690eb4fe11
block/rnbd-srv: init ret with 0 instead of -EPERM

Let's always set errno after pr_err which is consistent with
default case.

Acked-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: Guoqing Jiang <guoqing.jiang@linux.dev>
Link: https://lore.kernel.org/r/20230524070026.2932-7-guoqing.jiang@linux.dev
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/rnbd/rnbd-srv.c