[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201221054820.1005335-1-yili@winhong.com>
Date: Mon, 21 Dec 2020 13:48:20 +0800
From: Yi Li <yili@...hong.com>
To: colyli@...e.de
Cc: yilikernel@...il.com, kent.overstreet@...il.com,
linux-bcache@...r.kernel.org, linux-kernel@...r.kernel.org,
Yi Li <yili@...hong.com>
Subject: [PATCH v2] bcache: Trivial fix to register_bcache
Trivial fix to no need to check the bdev and do bdput.
Fixes: 4e7b5671c6a8("block: remove i_bdev")
Signed-off-by: Yi Li <yili@...hong.com>
---
drivers/md/bcache/super.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c
index f7ad1e26b013..4edf666860ad 100644
--- a/drivers/md/bcache/super.c
+++ b/drivers/md/bcache/super.c
@@ -2525,8 +2525,6 @@ static ssize_t register_bcache(struct kobject *k, struct kobj_attribute *attr,
else
err = "device busy";
mutex_unlock(&bch_register_lock);
- if (!IS_ERR(bdev))
- bdput(bdev);
if (attr == &ksysfs_register_quiet)
goto done;
}
--
2.25.3
Powered by blists - more mailing lists