hostap/hostap_ioctl.c Fix variable 'ret' set but not used
PATCH v2 1/1 hostap/hostap_ioctl.c Fix variable 'ret' set but not used
This a resend after receiving feedback on a better solution.
The below patch fixes a warning message generated by GCC:
CC [M] drivers/net/wireless/hostap/hostap_ioctl.odrivers/net/wireless/hostap/hostap_ioctl.c: In function 'prism2_request_scan':drivers/net/wireless/hostap/hostap_ioctl.c:1666:6: warning: variable 'ret' set but not used
--- drivers/net/wireless/hostap/hostap_ioctl.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/wireless/hostap/hostap_ioctl.c +1 -0
@@ -1690,6 +1690,7 @@ static int prism2_request_scan(struct net_device *dev) sizeof(scan_req))) {printk (KERN_DEBUG "SCANREQUEST failed\n" ); ret = -EINVAL ; +return ret; }if (!local->host_roaming)
Signature · 1 line
1.7.1.rc1.21.gf3bd6
Quoted 18 lines · Justin P. Mattock
This a resend after receiving feedback on a better solution.
The below patch fixes a warning message generated by GCC:
CC [M] drivers/net/wireless/hostap/hostap_ioctl.odrivers/net/wireless/hostap/hostap_ioctl.c: In function 'prism2_request_scan':drivers/net/wireless/hostap/hostap_ioctl.c:1666:6: warning: variable 'ret' set but not usedSigned-off-by Justin P. Mattock <[email protected]>---
drivers/net/wireless/hostap/hostap_ioctl.c | 1 +1 files changed, 1 insertions(+), 0 deletions(-)drivers/net/wireless/hostap/hostap_ioctl.c +0
-0
drivers/net/wireless/hostap/hostap_ioctl.c static int prism2_request_scan(struct net_device *dev) · line 1696
Quoted 7 lines
drivers/net/wireless/hostap/hostap_ioctl.c +1
-0@@ -1690,6 +1690,7 @@ static int prism2_request_scan(struct net_device *dev) sizeof(scan_req))) { printk(KERN_DEBUG "SCANREQUEST failed\n"); ret = -EINVAL; + return ret; } if (!local->host_roaming)
NACK, just make the routine return the ret instead of 0.
Luis
Quoted 26 lines · Luis R. Rodriguez
Quoted 24 lines · Justin P. Mattock
This a resend after receiving feedback on a better solution.
The below patch fixes a warning message generated by GCC:
CC [M] drivers/net/wireless/hostap/hostap_ioctl.odrivers/net/wireless/hostap/hostap_ioctl.c: In function 'prism2_request_scan':drivers/net/wireless/hostap/hostap_ioctl.c:1666:6: warning: variable 'ret' set but not usedSigned-off-by Justin P. Mattock <[email protected]>---
drivers/net/wireless/hostap/hostap_ioctl.c | 1 +1 files changed, 1 insertions(+), 0 deletions(-)drivers/net/wireless/hostap/hostap_ioctl.c +1
-0@@ -1690,6 +1690,7 @@ static int prism2_request_scan(struct net_device *dev) sizeof(scan_req))) { printk(KERN_DEBUG "SCANREQUEST failed\n"); ret = -EINVAL; + return ret; }
Quoted 3 lines
drivers/net/wireless/hostap/hostap_ioctl.c static int prism2_request_scan(struct net_device *dev) · line 1696
Quoted 1 line
drivers/net/wireless/hostap/hostap_ioctl.c +0
-0if (!local->host_roaming)NACK, just make the routine return the ret instead of 0.
As in something along the lines of:
hostap_ioctl.c~new renamed from hostap_ioctl.c +1 -1
@@ -1696,7 +1696,7 @@ hostap_set_word(dev, HFA384X_RID_CNFROAMINGMODE, HFA384X_ROAMING_FIRMWARE); - return 0; + return ret; } #else /* !PRISM2_NO_STATION_MODES */
(whitespace damange, missing paths, and incorrect names are intentional)
Thanks,
Signature · 4 lines
Julian Calaby Email: [email protected] .Plan: http://sites.google.com/site/juliancalaby/
Quoted 45 lines · Julian Calaby
Quoted 26 lines · Luis R. Rodriguez
Quoted 24 lines · Justin P. Mattock
This a resend after receiving feedback on a better solution.
The below patch fixes a warning message generated by GCC:
CC [M]drivers/net/wireless/hostap/hostap_ioctl.odrivers/net/wireless/hostap/hostap_ioctl.c: In function 'prism2_request_scan':drivers/net/wireless/hostap/hostap_ioctl.c:1666:6: warning: variable 'ret' set but not usedSigned-off-by Justin P. Mattock<[email protected]>--- drivers/net/wireless/hostap/hostap_ioctl.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)drivers/net/wireless/hostap/hostap_ioctl.c +1
-0@@ -1690,6 +1690,7 @@ static int prism2_request_scan(struct net_device *dev) sizeof(scan_req))) {printk (KERN_DEBUG "SCANREQUEST failed\n" ); ret = -EINVAL ; +return ret; }Quoted 3 lines
drivers/net/wireless/hostap/hostap_ioctl.c static int prism2_request_scan(struct net_device *dev) · line 1696
Quoted 1 line
drivers/net/wireless/hostap/hostap_ioctl.c +0
-0if (!local->host_roaming)NACK, just make the routine return the ret instead of 0.
As in something along the lines of:
hostap_ioctl.c~new renamed from hostap_ioctl.c +1
-1@@ -1696,7 +1696,7 @@ hostap_set_word(dev, HFA384X_RID_CNFROAMINGMODE, HFA384X_ROAMING_FIRMWARE); - return 0; + return ret; } #else /* !PRISM2_NO_STATION_MODES */
Quoted 4 lines
(whitespace damange, missing paths, and incorrect names are intentional)
Thanks,
ahh.. now I see.. so no EINVAL just 0.
let me resend.
Justin P. Mattock