nvme-auth: fixup kernel test robot warnings
authorHannes Reinecke <hare@suse.de>
Fri, 15 Jul 2022 11:40:44 +0000 (13:40 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 26 Jul 2022 20:04:19 +0000 (16:04 -0400)
commit4dfbd5418763018f33acded0871fbbc22c8e4695
treeb4b7ee305e2584646453a7bdeffa5c81300f02bf
parente83bf5419c4d9b6d4b25b259c074ddcf78a69caa
nvme-auth: fixup kernel test robot warnings

The linux kernel test robot complained that some checks in
nvme_auth_hmac_{len,name,id} and nvme_auth_dhgroup_{name,kpp,id} always
evaluate to 'true'. So simplify the conditions to get rid of those
warnings.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/common/auth.c