Commit 4a09a845 authored by Gioh Kim's avatar Gioh Kim Committed by Jens Axboe

block/rnbd-clt: fix CHECK:BRACES warning

This patch fix the "CHECK:BRACES: braces {} should be used on all
arms of this statement" warning from checkpatch
Signed-off-by: default avatarGioh Kim <gi-oh.kim@ionos.com>
Signed-off-by: default avatarMd Haris Iqbal <haris.iqbal@ionos.com>
Link: https://lore.kernel.org/r/20220114155855.984144-2-haris.iqbal@ionos.comSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 451f0b6f
...@@ -1262,9 +1262,9 @@ find_and_get_or_create_sess(const char *sessname, ...@@ -1262,9 +1262,9 @@ find_and_get_or_create_sess(const char *sessname,
struct rtrs_clt_ops rtrs_ops; struct rtrs_clt_ops rtrs_ops;
sess = find_or_create_sess(sessname, &first); sess = find_or_create_sess(sessname, &first);
if (sess == ERR_PTR(-ENOMEM)) if (sess == ERR_PTR(-ENOMEM)) {
return 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. * A device MUST have its own session to use the polling-mode.
* It must fail to map new device with the same session. * It must fail to map new device with the same session.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment