nvme-tcp: only evaluate 'tls' option if TLS is selected
authorHannes Reinecke <hare@suse.de>
Tue, 14 Nov 2023 13:18:21 +0000 (14:18 +0100)
committerKeith Busch <kbusch@kernel.org>
Mon, 20 Nov 2023 17:25:32 +0000 (09:25 -0800)
commit23441536b63677cb2ed9b1637d8ca70315e44bd0
treeb2bbd656935ffcd8e80154fc8606e9dcd17742f7
parent38ce1570e2c46e7e9af983aa337edd7e43723aa2
nvme-tcp: only evaluate 'tls' option if TLS is selected

We only need to evaluate the 'tls' connect option if TLS is
enabled; otherwise we might be getting a link error.

Fixes: 706add13676d ("nvme: keyring: fix conditional compilation")
Reported-by: kernel test robot <yujie.liu@intel.com>
Closes: https://lore.kernel.org/r/202311140426.0eHrTXBr-lkp@intel.com/
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/tcp.c