This codding style is wrong:

On 01.11.2022 10:25, Andrey Zhadchenko wrote:
+static void vhost_blk_req_done(struct bio *bio)
+{
+       struct vhost_blk_req *req = bio->bi_private;
+       struct vhost_blk *blk = req->blk;
+       int err = blk_status_to_errno(bio->bi_status);
+
+       if (err)
+               req->bio_err = err;

should be:

funca()
{
        int err;

        err = funcb();
        if (err)
                do_something;
}

Please fix.

--
Best regards, Tikhomirov Pavel
Software Developer, Virtuozzo.
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to