libceph: drop authorizer check from cephx msg signing routines
I don't see a way for auth->authorizer to be NULL in
ceph_x_sign_message() or ceph_x_check_message_signature().
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
diff --git a/net/ceph/auth_x.c b/net/ceph/auth_x.c
index 65054fd..3a544ca 100644
--- a/net/ceph/auth_x.c
+++ b/net/ceph/auth_x.c
@@ -697,8 +697,7 @@
struct ceph_msg *msg)
{
int ret;
- if (!auth->authorizer)
- return 0;
+
ret = calcu_signature((struct ceph_x_authorizer *)auth->authorizer,
msg, &msg->footer.sig);
if (ret < 0)
@@ -713,8 +712,6 @@
__le64 sig_check;
int ret;
- if (!auth->authorizer)
- return 0;
ret = calcu_signature((struct ceph_x_authorizer *)auth->authorizer,
msg, &sig_check);
if (ret < 0)