mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
qcacld-3.0: Fix incorrect error handling in hdd_module_init()
The function wlan_init_sysfs() returns 0 on success; and errno on failure. Fix this error handling to check for ret instead of !ret. Change-Id: I9acc30985735b014464b83c9e3dffea2d1cb4226 CRs-Fixed: 1085184
This commit is contained in:
parent
d9491f4936
commit
5e7dafe926
1 changed files with 2 additions and 2 deletions
|
|
@ -9230,7 +9230,7 @@ static ssize_t wlan_boot_cb(struct kobject *kobj,
|
|||
* This is creates the syfs entry boot_wlan. Which shall be invoked
|
||||
* when the filesystem is ready.
|
||||
*
|
||||
* Return: None
|
||||
* Return: 0 for success, errno on failure
|
||||
*/
|
||||
static int wlan_init_sysfs(void)
|
||||
{
|
||||
|
|
@ -9335,7 +9335,7 @@ static int __init hdd_module_init(void)
|
|||
int ret = -EINVAL;
|
||||
|
||||
ret = wlan_init_sysfs();
|
||||
if (!ret)
|
||||
if (ret)
|
||||
pr_err("Failed to create sysfs entry for loading wlan");
|
||||
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in a new issue