diff options
author | David Howells <dhowells@redhat.com> | 2014-09-16 12:36:08 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2014-09-16 12:36:08 -0400 |
commit | 0c903ab64feb0fe83eac9f67a06e2f5b9508de16 (patch) | |
tree | 809464ff50aa99c1caaf650230fea4f30ef8138c /crypto | |
parent | c06cfb08b88dfbe13be44a69ae2fdc3a7c902d81 (diff) |
KEYS: Make the key matching functions return bool
Make the key matching functions pointed to by key_match_data::cmp return bool
rather than int.
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/asymmetric_keys/asymmetric_type.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/asymmetric_keys/asymmetric_type.c b/crypto/asymmetric_keys/asymmetric_type.c index 7c0498968975..7755f918e8d9 100644 --- a/crypto/asymmetric_keys/asymmetric_type.c +++ b/crypto/asymmetric_keys/asymmetric_type.c | |||
@@ -59,8 +59,8 @@ EXPORT_SYMBOL_GPL(asymmetric_keyid_match); | |||
59 | * "id:<id>" - request a key matching the ID | 59 | * "id:<id>" - request a key matching the ID |
60 | * "<subtype>:<id>" - request a key of a subtype | 60 | * "<subtype>:<id>" - request a key of a subtype |
61 | */ | 61 | */ |
62 | static int asymmetric_key_cmp(const struct key *key, | 62 | static bool asymmetric_key_cmp(const struct key *key, |
63 | const struct key_match_data *match_data) | 63 | const struct key_match_data *match_data) |
64 | { | 64 | { |
65 | const struct asymmetric_key_subtype *subtype = asymmetric_key_subtype(key); | 65 | const struct asymmetric_key_subtype *subtype = asymmetric_key_subtype(key); |
66 | const char *description = match_data->raw_data; | 66 | const char *description = match_data->raw_data; |