]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8712: r8712_set_802_11_add_wep(): Change return values
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Mon, 22 Jul 2019 09:23:39 +0000 (14:53 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2019 07:52:00 +0000 (09:52 +0200)
commitab0e819f78ea7a46dd91acd58296c71aa78c5a37
tree1c2a39f612ab109e4740f47c7e76a4438d6fdcb4
parentcc4b8cf272ea701946ce2d3a410feaef1f0618f5
staging: rtl8712: r8712_set_802_11_add_wep(): Change return values

Change call sites of r8712_set_802_11_add_wep to check for 0 and
non-zero values (e.g -EINVAL, -ENOMEM) instead of for _SUCCESS and
_FAIL.
Change return values of r8712_set_802_11_add_wep from true and false and
_SUCCESS to -EINVAL and the return value of r8712_set_key.
Change return type from u8 to int to accommodate these new return
values.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Link: https://lore.kernel.org/r/20190722092341.21030-6-nishkadg.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl871x_ioctl_linux.c
drivers/staging/rtl8712/rtl871x_ioctl_set.c
drivers/staging/rtl8712/rtl871x_ioctl_set.h