OSDN Git Service

net/af_iucv: clean up a try_then_request_module()
authorJulian Wiedmann <jwi@linux.ibm.com>
Mon, 9 Aug 2021 08:30:47 +0000 (10:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Aug 2021 09:13:32 +0000 (10:13 +0100)
commit4eb9eda6ba64114d98827e2870e024d5ab7cd35b
tree3c960f82e6aeb1729b073dee3ab8d99bb0c90ef3
parent10d6393dc471de5b8be84a19a967e51058ac5d1e
net/af_iucv: clean up a try_then_request_module()

Use IS_ENABLED(CONFIG_IUCV) to determine whether the iucv_if symbol
is available, and let depmod deal with the module dependency.

This was introduced back with commit 6fcd61f7bf5d ("af_iucv: use
loadable iucv interface"). And to avoid sprinkling IS_ENABLED() over
all the code, we're keeping the indirection through pr_iucv->...().

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/iucv/af_iucv.c