提交 bad87216 编写于 作者: Y YueHaibing 提交者: Ilya Dryomov

libceph: remove unnecessary non NULL check for request_key

request_key never return NULL,so no need do non-NULL check.
Signed-off-by: NYueHaibing <yuehaibing@huawei.com>
Reviewed-by: NIlya Dryomov <idryomov@gmail.com>
Signed-off-by: NIlya Dryomov <idryomov@gmail.com>
上级 e5bc08d0
...@@ -304,7 +304,7 @@ static int get_secret(struct ceph_crypto_key *dst, const char *name) { ...@@ -304,7 +304,7 @@ static int get_secret(struct ceph_crypto_key *dst, const char *name) {
struct ceph_crypto_key *ckey; struct ceph_crypto_key *ckey;
ukey = request_key(&key_type_ceph, name, NULL); ukey = request_key(&key_type_ceph, name, NULL);
if (!ukey || IS_ERR(ukey)) { if (IS_ERR(ukey)) {
/* request_key errors don't map nicely to mount(2) /* request_key errors don't map nicely to mount(2)
errors; don't even try, but still printk */ errors; don't even try, but still printk */
key_err = PTR_ERR(ukey); key_err = PTR_ERR(ukey);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册