diff options
author | David Howells <dhowells@redhat.com> | 2014-09-16 12:36:06 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2014-09-16 12:36:06 -0400 |
commit | c06cfb08b88dfbe13be44a69ae2fdc3a7c902d81 (patch) | |
tree | 8bc0e3794ffb426b3cbb2c0d7c2dbbd4b28e3054 /net/ceph | |
parent | 614d8c39014c185aa0f7254f0a470cc33fc1b284 (diff) |
KEYS: Remove key_type::match in favour of overriding default by match_preparse
A previous patch added a ->match_preparse() method to the key type. This is
allowed to override the function called by the iteration algorithm.
Therefore, we can just set a default that simply checks for an exact match of
the key description with the original criterion data and allow match_preparse
to override it as needed.
The key_type::match op is then redundant and can be removed, as can the
user_match() function.
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Diffstat (limited to 'net/ceph')
-rw-r--r-- | net/ceph/crypto.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ceph/crypto.c b/net/ceph/crypto.c index ffeba8f9dda9..62fc5e7a9acf 100644 --- a/net/ceph/crypto.c +++ b/net/ceph/crypto.c | |||
@@ -476,7 +476,6 @@ struct key_type key_type_ceph = { | |||
476 | .preparse = ceph_key_preparse, | 476 | .preparse = ceph_key_preparse, |
477 | .free_preparse = ceph_key_free_preparse, | 477 | .free_preparse = ceph_key_free_preparse, |
478 | .instantiate = generic_key_instantiate, | 478 | .instantiate = generic_key_instantiate, |
479 | .match = user_match, | ||
480 | .destroy = ceph_key_destroy, | 479 | .destroy = ceph_key_destroy, |
481 | }; | 480 | }; |
482 | 481 | ||