staging: r8188: remove the dummy ioctl handler
authorMartin Kaiser <martin@kaiser.cx>
Sat, 18 Dec 2021 12:04:16 +0000 (13:04 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Dec 2021 16:51:14 +0000 (17:51 +0100)
commite87261086e95b3cac939870379acf785e6a145a5
treebad23b5174ade98f03ca28f0f387ed82e59e8e0a
parent4218817c70a5bdc8c3601ec0a44c65ec4de5dd17
staging: r8188: remove the dummy ioctl handler

The r8188 driver installs a dummy handler for some unused ioctls. All
that the dummy handler does is return -1.

Remove the dummy handler and let the wext core handle unused ioctls.
This way, user space gets a consistent errno for an unused wext ioctl,
regardless of which driver is used for the interface.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20211218120423.29906-3-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/os_dep/ioctl_linux.c