Commit f8ee4b77 authored by David S. Miller's avatar David S. Miller

net/socket.c: Do not reference dev_ioctl unless CONFIG_NET.

parent c7b3141e
......@@ -726,9 +726,11 @@ int sock_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
unlock_kernel();
sock = SOCKET_I(inode);
#ifdef CONFIG_NET
if (cmd >= SIOCDEVPRIVATE && cmd <= (SIOCDEVPRIVATE + 15)) {
err = dev_ioctl(cmd, (void *)arg);
} else
#endif /* CONFIG_NET */
#ifdef WIRELESS_EXT
if (cmd >= SIOCIWFIRST && cmd <= SIOCIWLAST) {
err = dev_ioctl(cmd, (void *)arg);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment