block/rnbd-clt: fix CHECK:BRACES warning
authorGioh Kim <gi-oh.kim@ionos.com>
Fri, 14 Jan 2022 15:58:54 +0000 (16:58 +0100)
committerJens Axboe <axboe@kernel.dk>
Sun, 27 Feb 2022 21:49:48 +0000 (14:49 -0700)
This patch fix the "CHECK:BRACES: braces {} should be used on all
arms of this statement" warning from checkpatch

Signed-off-by: Gioh Kim <gi-oh.kim@ionos.com>
Signed-off-by: Md Haris Iqbal <haris.iqbal@ionos.com>
Link: https://lore.kernel.org/r/20220114155855.984144-2-haris.iqbal@ionos.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/rnbd/rnbd-clt.c

index c08971d..f0370a3 100644 (file)
@@ -1262,9 +1262,9 @@ find_and_get_or_create_sess(const char *sessname,
        struct rtrs_clt_ops rtrs_ops;
 
        sess = find_or_create_sess(sessname, &first);
-       if (sess == ERR_PTR(-ENOMEM))
+       if (sess == ERR_PTR(-ENOMEM)) {
                return ERR_PTR(-ENOMEM);
-       else if ((nr_poll_queues && !first) ||  (!nr_poll_queues && sess->nr_poll_queues)) {
+       else if ((nr_poll_queues && !first) ||  (!nr_poll_queues && sess->nr_poll_queues)) {
                /*
                 * A device MUST have its own session to use the polling-mode.
                 * It must fail to map new device with the same session.