From: Martin Homuth Date: Mon, 18 Dec 2017 23:24:07 +0000 (+0100) Subject: staging: rtl8712: style fix returned error code X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=201521259602b0fb1acb1c977a9941049b0f83d6;p=openwrt%2Fstaging%2Fblogic.git staging: rtl8712: style fix returned error code 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c index 68ddb4aa0ebe..bf9c0a497616 100644 --- a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c +++ b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c @@ -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,