projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be2b2f6
)
rnbd-srv: remove redundant setting of blk_open_flags
author
Guoqing Jiang
<guoqing.jiang@linux.dev>
Fri, 2 Sep 2022 10:00:55 +0000
(18:00 +0800)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 5 Sep 2022 17:46:42 +0000
(11:46 -0600)
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>
drivers/block/rnbd/rnbd-srv-dev.c
patch
|
blob
|
history
diff --git
a/drivers/block/rnbd/rnbd-srv-dev.c
b/drivers/block/rnbd/rnbd-srv-dev.c
index
c63017f
..
38131fa
100644
(file)
--- 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)