]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/phonet/af_phonet.c
net: Remove CONFIG_KMOD from net/ (towards removing CONFIG_KMOD entirely)
[karo-tx-linux.git] / net / phonet / af_phonet.c
index 9e9c6fce11aad1ff98a79675c1c840aa79dec4de..b9d97effebe32ac3c276bf4dee94cda5da4fb7cf 100644 (file)
@@ -67,11 +67,10 @@ static int pn_socket_create(struct net *net, struct socket *sock, int protocol)
        }
 
        pnp = phonet_proto_get(protocol);
-#ifdef CONFIG_KMOD
        if (pnp == NULL &&
            request_module("net-pf-%d-proto-%d", PF_PHONET, protocol) == 0)
                pnp = phonet_proto_get(protocol);
-#endif
+
        if (pnp == NULL)
                return -EPROTONOSUPPORT;
        if (sock->type != pnp->sock_type) {