staging: rtl8712: style fix returned error code
authorMartin Homuth <martin@martinhomuth.de>
Mon, 18 Dec 2017 23:24:07 +0000 (00:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Dec 2017 14:28:09 +0000 (15:28 +0100)
This patch fixes a coding style issues in the rtl8712 module as noted
by checkpatch.pl regarding the returned error code.

It fixes the following checkpatch.pl warning:

WARNING: ENOSYS means 'invalid syscall nr' and nothing else

Signed-off-by: Martin Homuth <martin@martinhomuth.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl871x_ioctl_linux.c

index 68ddb4aa0ebe60498b0591f99f96bbff2e7c03c8..bf9c0a4976161138c8d419c6c2f7cb3a1fc9a0b8 100644 (file)
@@ -1853,7 +1853,7 @@ static int dummy(struct net_device *dev,
                struct iw_request_info *a,
                union iwreq_data *wrqu, char *b)
 {
-       return -ENOSYS;
+       return -EINVAL;
 }
 
 static int r8711_drvext_hdl(struct net_device *dev,