Skip to content

Commit

Permalink
rnbd-srv: remove redundant setting of blk_open_flags
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Guoqing Jiang authored and Jens Axboe committed Sep 5, 2022
1 parent be2b2f6 commit 8807707
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/block/rnbd/rnbd-srv-dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8807707

Please sign in to comment.