[PATCH 3/8] nvme-tcp: check for invalidated or revoked key
Christoph Hellwig
hch at lst.de
Thu Jul 18 22:37:00 PDT 2024
> + return (test_bit(KEY_FLAG_REVOKED, &psk->flags) ||
> + test_bit(KEY_FLAG_INVALIDATED, &psk->flags));
No need for the outer braces.
> +struct key *nvme_tls_key_lookup(key_serial_t key_id)
> +{
> + struct key *key = key_lookup(key_id);
Empty line after variable declarations, please.
> +static inline struct key *nvme_tls_key_lookup(key_serial_t key_id) { return ERR_PTR(-ENOTSUPP); }
Please avoid the overly lone line.
More information about the Linux-nvme
mailing list