mirror_ubuntu-kernels/drivers/net/wireless/realtek
Dan Carpenter c9eaee0c2e rtw88: Fix an error code in rtw_debugfs_set_rsvd_page()
The sscanf() function returns the number of matches (0 or 1 in this
case).  It doesn't return error codes.  We should return -EINVAL if the
string is invalid

Fixes: c376c1fc87 ("rtw88: add h2c command in debugfs")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/YE8nmatMDBDDWkjq@mwanda
2021-04-11 12:29:06 +03:00
..
rtl8xxxu rtl8xxxu: remove unused assignment value 2021-02-08 13:16:35 +02:00
rtl818x rtl818x_pci: switch from 'pci_' to 'dma_' API 2020-09-01 12:34:20 +03:00
rtlwifi rtlwifi: rtl8821ae: phy: Simplify bool comparison 2021-02-10 09:39:35 +02:00
rtw88 rtw88: Fix an error code in rtw_debugfs_set_rsvd_page() 2021-04-11 12:29:06 +03:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00