diff options
author | David Howells <dhowells@redhat.com> | 2014-09-16 17:36:08 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2014-09-16 17:36:08 +0100 |
commit | 0c903ab64feb0fe83eac9f67a06e2f5b9508de16 (patch) | |
tree | 809464ff50aa99c1caaf650230fea4f30ef8138c /crypto/asymmetric_keys | |
parent | c06cfb08b88dfbe13be44a69ae2fdc3a7c902d81 (diff) | |
download | op-kernel-dev-0c903ab64feb0fe83eac9f67a06e2f5b9508de16.zip op-kernel-dev-0c903ab64feb0fe83eac9f67a06e2f5b9508de16.tar.gz |
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/asymmetric_keys')
-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 7c04989..7755f91 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); * "id:<id>" - request a key matching the ID * "<subtype>:<id>" - request a key of a subtype */ -static int asymmetric_key_cmp(const struct key *key, - const struct key_match_data *match_data) +static bool asymmetric_key_cmp(const struct key *key, + const struct key_match_data *match_data) { const struct asymmetric_key_subtype *subtype = asymmetric_key_subtype(key); const char *description = match_data->raw_data; |