]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ublk_drv: remove unneeded semicolon
authorYang Li <yang.lee@linux.alibaba.com>
Mon, 18 Jul 2022 01:54:31 +0000 (09:54 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Jul 2022 19:10:24 +0000 (13:10 -0600)
Eliminate the following coccicheck warnings:
./drivers/block/ublk_drv.c:1467:2-3: Unneeded semicolon
./drivers/block/ublk_drv.c:1528:2-3: Unneeded semicolon

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20220718015431.40185-1-yang.lee@linux.alibaba.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c

index 663626167c0d1c806c2bf7d56f63c8152a9a6aab..42afab25864fc2e9fa45d2a1915c50e880537485 100644 (file)
@@ -1465,7 +1465,7 @@ static int ublk_ctrl_cmd_validate(struct io_uring_cmd *cmd,
                        return -EINVAL;
                if (!header->addr)
                        return -EINVAL;
-       };
+       }
 
        return 0;
 }
@@ -1526,7 +1526,7 @@ static int ublk_ctrl_uring_cmd(struct io_uring_cmd *cmd,
                break;
        default:
                break;
-       };
+       }
  out:
        io_uring_cmd_done(cmd, ret, 0);
        pr_devel("%s: cmd done ret %d cmd_op %x, dev id %d qid %d\n",