mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-06 01:09:08 +00:00
Staging: otus: Fix warnings in staging/otus/ioctl.c
This fixes a number of warnings in the otus driver. Signed-off-by: D Pranith Kumar <bobby.prani@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
4c47b34cd6
commit
4a5629b92e
@ -2045,6 +2045,7 @@ int usbdrv_wpa_ioctl(struct net_device *dev, struct athr_wlan_param *zdparm)
|
|||||||
struct zsKeyInfo keyInfo;
|
struct zsKeyInfo keyInfo;
|
||||||
struct usbdrv_private *macp = dev->ml_priv;
|
struct usbdrv_private *macp = dev->ml_priv;
|
||||||
u16_t vapId = 0;
|
u16_t vapId = 0;
|
||||||
|
int ii;
|
||||||
|
|
||||||
/* zmw_get_wlan_dev(dev); */
|
/* zmw_get_wlan_dev(dev); */
|
||||||
|
|
||||||
@ -2168,7 +2169,6 @@ int usbdrv_wpa_ioctl(struct net_device *dev, struct athr_wlan_param *zdparm)
|
|||||||
/* DUMP key context */
|
/* DUMP key context */
|
||||||
/* #ifdef WPA_DEBUG */
|
/* #ifdef WPA_DEBUG */
|
||||||
if (keyInfo.keyLength > 0) {
|
if (keyInfo.keyLength > 0) {
|
||||||
int ii;
|
|
||||||
printk(KERN_WARNING
|
printk(KERN_WARNING
|
||||||
"Otus: Key Context:\n");
|
"Otus: Key Context:\n");
|
||||||
for (ii = 0; ii < keyInfo.keyLength; ) {
|
for (ii = 0; ii < keyInfo.keyLength; ) {
|
||||||
@ -2266,7 +2266,6 @@ int usbdrv_wpa_ioctl(struct net_device *dev, struct athr_wlan_param *zdparm)
|
|||||||
/* zfiWlanSetWpaIe(dev, zdparm->u.generic_elem.data,
|
/* zfiWlanSetWpaIe(dev, zdparm->u.generic_elem.data,
|
||||||
* zdparm->u.generic_elem.len);
|
* zdparm->u.generic_elem.len);
|
||||||
*/
|
*/
|
||||||
int ii;
|
|
||||||
u8_t len = zdparm->u.generic_elem.len;
|
u8_t len = zdparm->u.generic_elem.len;
|
||||||
u8_t *wpaie = (u8_t *)zdparm->u.generic_elem.data;
|
u8_t *wpaie = (u8_t *)zdparm->u.generic_elem.data;
|
||||||
|
|
||||||
@ -2401,7 +2400,7 @@ int usbdrv_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
|
|||||||
struct athr_wlan_param zdparm;
|
struct athr_wlan_param zdparm;
|
||||||
struct usbdrv_private *macp = dev->ml_priv;
|
struct usbdrv_private *macp = dev->ml_priv;
|
||||||
|
|
||||||
int err = 0;
|
int err = 0, val = 0;
|
||||||
int changed = 0;
|
int changed = 0;
|
||||||
|
|
||||||
/* regp = macp->regp; */
|
/* regp = macp->regp; */
|
||||||
@ -2445,7 +2444,7 @@ int usbdrv_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
|
|||||||
err = -EPERM;
|
err = -EPERM;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
int val = *((int *) wrq->u.name);
|
val = *((int *) wrq->u.name);
|
||||||
if ((val < 0) || (val > 2)) {
|
if ((val < 0) || (val > 2)) {
|
||||||
err = -EINVAL;
|
err = -EINVAL;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user