summaryrefslogtreecommitdiffstats
path: root/drivers/block/rnbd
diff options
context:
space:
mode:
authorGuoqing Jiang <guoqing.jiang@linux.dev>2022-09-02 12:00:55 +0200
committerJens Axboe <axboe@kernel.dk>2022-09-05 19:46:42 +0200
commit8807707df7ef09d679df2b21894d49a06fd8ba7e (patch)
treed9921e3bc61485d773f0f0788e3a70f6602fe4a0 /drivers/block/rnbd
parentrnbd-srv: make process_msg_close returns void (diff)
downloadlinux-8807707df7ef09d679df2b21894d49a06fd8ba7e.tar.xz
linux-8807707df7ef09d679df2b21894d49a06fd8ba7e.zip
rnbd-srv: remove redundant setting of blk_open_flags
It is not necessary since it is set later just before function return success. Signed-off-by: Guoqing Jiang <guoqing.jiang@linux.dev> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Acked-by: Md Haris Iqbal <haris.iqbal@ionos.com> Link: https://lore.kernel.org/r/20220902100055.25724-4-guoqing.jiang@linux.dev Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/rnbd')
-rw-r--r--drivers/block/rnbd/rnbd-srv-dev.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/block/rnbd/rnbd-srv-dev.c b/drivers/block/rnbd/rnbd-srv-dev.c
index c63017f6e421..38131fa5718d 100644
--- a/drivers/block/rnbd/rnbd-srv-dev.c
+++ b/drivers/block/rnbd/rnbd-srv-dev.c
@@ -21,7 +21,6 @@ struct rnbd_dev *rnbd_dev_open(const char *path, fmode_t flags)
if (!dev)
return ERR_PTR(-ENOMEM);
- dev->blk_open_flags = flags;
dev->bdev = blkdev_get_by_path(path, flags, THIS_MODULE);
ret = PTR_ERR_OR_ZERO(dev->bdev);
if (ret)