diff options
Diffstat (limited to 'drivers/net/wireless/airo.c')
-rw-r--r-- | drivers/net/wireless/airo.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c index a441aad922c2..528d56375623 100644 --- a/drivers/net/wireless/airo.c +++ b/drivers/net/wireless/airo.c | |||
@@ -4657,7 +4657,7 @@ static ssize_t proc_write( struct file *file, | |||
4657 | loff_t *offset ) | 4657 | loff_t *offset ) |
4658 | { | 4658 | { |
4659 | loff_t pos = *offset; | 4659 | loff_t pos = *offset; |
4660 | struct proc_data *priv = (struct proc_data*)file->private_data; | 4660 | struct proc_data *priv = file->private_data; |
4661 | 4661 | ||
4662 | if (!priv->wbuffer) | 4662 | if (!priv->wbuffer) |
4663 | return -EINVAL; | 4663 | return -EINVAL; |
@@ -4689,7 +4689,7 @@ static int proc_status_open(struct inode *inode, struct file *file) | |||
4689 | 4689 | ||
4690 | if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) | 4690 | if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) |
4691 | return -ENOMEM; | 4691 | return -ENOMEM; |
4692 | data = (struct proc_data *)file->private_data; | 4692 | data = file->private_data; |
4693 | if ((data->rbuffer = kmalloc( 2048, GFP_KERNEL )) == NULL) { | 4693 | if ((data->rbuffer = kmalloc( 2048, GFP_KERNEL )) == NULL) { |
4694 | kfree (file->private_data); | 4694 | kfree (file->private_data); |
4695 | return -ENOMEM; | 4695 | return -ENOMEM; |
@@ -4772,7 +4772,7 @@ static int proc_stats_rid_open( struct inode *inode, | |||
4772 | 4772 | ||
4773 | if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) | 4773 | if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) |
4774 | return -ENOMEM; | 4774 | return -ENOMEM; |
4775 | data = (struct proc_data *)file->private_data; | 4775 | data = file->private_data; |
4776 | if ((data->rbuffer = kmalloc( 4096, GFP_KERNEL )) == NULL) { | 4776 | if ((data->rbuffer = kmalloc( 4096, GFP_KERNEL )) == NULL) { |
4777 | kfree (file->private_data); | 4777 | kfree (file->private_data); |
4778 | return -ENOMEM; | 4778 | return -ENOMEM; |
@@ -5045,7 +5045,7 @@ static int proc_config_open(struct inode *inode, struct file *file) | |||
5045 | 5045 | ||
5046 | if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) | 5046 | if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) |
5047 | return -ENOMEM; | 5047 | return -ENOMEM; |
5048 | data = (struct proc_data *)file->private_data; | 5048 | data = file->private_data; |
5049 | if ((data->rbuffer = kmalloc( 2048, GFP_KERNEL )) == NULL) { | 5049 | if ((data->rbuffer = kmalloc( 2048, GFP_KERNEL )) == NULL) { |
5050 | kfree (file->private_data); | 5050 | kfree (file->private_data); |
5051 | return -ENOMEM; | 5051 | return -ENOMEM; |
@@ -5127,7 +5127,7 @@ static int proc_config_open(struct inode *inode, struct file *file) | |||
5127 | 5127 | ||
5128 | static void proc_SSID_on_close(struct inode *inode, struct file *file) | 5128 | static void proc_SSID_on_close(struct inode *inode, struct file *file) |
5129 | { | 5129 | { |
5130 | struct proc_data *data = (struct proc_data *)file->private_data; | 5130 | struct proc_data *data = file->private_data; |
5131 | struct proc_dir_entry *dp = PDE(inode); | 5131 | struct proc_dir_entry *dp = PDE(inode); |
5132 | struct net_device *dev = dp->data; | 5132 | struct net_device *dev = dp->data; |
5133 | struct airo_info *ai = dev->ml_priv; | 5133 | struct airo_info *ai = dev->ml_priv; |
@@ -5170,7 +5170,7 @@ static inline u8 hexVal(char c) { | |||
5170 | } | 5170 | } |
5171 | 5171 | ||
5172 | static void proc_APList_on_close( struct inode *inode, struct file *file ) { | 5172 | static void proc_APList_on_close( struct inode *inode, struct file *file ) { |
5173 | struct proc_data *data = (struct proc_data *)file->private_data; | 5173 | struct proc_data *data = file->private_data; |
5174 | struct proc_dir_entry *dp = PDE(inode); | 5174 | struct proc_dir_entry *dp = PDE(inode); |
5175 | struct net_device *dev = dp->data; | 5175 | struct net_device *dev = dp->data; |
5176 | struct airo_info *ai = dev->ml_priv; | 5176 | struct airo_info *ai = dev->ml_priv; |
@@ -5316,7 +5316,7 @@ static void proc_wepkey_on_close( struct inode *inode, struct file *file ) { | |||
5316 | 5316 | ||
5317 | memset(key, 0, sizeof(key)); | 5317 | memset(key, 0, sizeof(key)); |
5318 | 5318 | ||
5319 | data = (struct proc_data *)file->private_data; | 5319 | data = file->private_data; |
5320 | if ( !data->writelen ) return; | 5320 | if ( !data->writelen ) return; |
5321 | 5321 | ||
5322 | if (data->wbuffer[0] >= '0' && data->wbuffer[0] <= '3' && | 5322 | if (data->wbuffer[0] >= '0' && data->wbuffer[0] <= '3' && |
@@ -5370,7 +5370,7 @@ static int proc_wepkey_open( struct inode *inode, struct file *file ) | |||
5370 | if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) | 5370 | if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) |
5371 | return -ENOMEM; | 5371 | return -ENOMEM; |
5372 | memset(&wkr, 0, sizeof(wkr)); | 5372 | memset(&wkr, 0, sizeof(wkr)); |
5373 | data = (struct proc_data *)file->private_data; | 5373 | data = file->private_data; |
5374 | if ((data->rbuffer = kzalloc( 180, GFP_KERNEL )) == NULL) { | 5374 | if ((data->rbuffer = kzalloc( 180, GFP_KERNEL )) == NULL) { |
5375 | kfree (file->private_data); | 5375 | kfree (file->private_data); |
5376 | return -ENOMEM; | 5376 | return -ENOMEM; |
@@ -5416,7 +5416,7 @@ static int proc_SSID_open(struct inode *inode, struct file *file) | |||
5416 | 5416 | ||
5417 | if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) | 5417 | if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) |
5418 | return -ENOMEM; | 5418 | return -ENOMEM; |
5419 | data = (struct proc_data *)file->private_data; | 5419 | data = file->private_data; |
5420 | if ((data->rbuffer = kmalloc( 104, GFP_KERNEL )) == NULL) { | 5420 | if ((data->rbuffer = kmalloc( 104, GFP_KERNEL )) == NULL) { |
5421 | kfree (file->private_data); | 5421 | kfree (file->private_data); |
5422 | return -ENOMEM; | 5422 | return -ENOMEM; |
@@ -5460,7 +5460,7 @@ static int proc_APList_open( struct inode *inode, struct file *file ) { | |||
5460 | 5460 | ||
5461 | if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) | 5461 | if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) |
5462 | return -ENOMEM; | 5462 | return -ENOMEM; |
5463 | data = (struct proc_data *)file->private_data; | 5463 | data = file->private_data; |
5464 | if ((data->rbuffer = kmalloc( 104, GFP_KERNEL )) == NULL) { | 5464 | if ((data->rbuffer = kmalloc( 104, GFP_KERNEL )) == NULL) { |
5465 | kfree (file->private_data); | 5465 | kfree (file->private_data); |
5466 | return -ENOMEM; | 5466 | return -ENOMEM; |
@@ -5502,7 +5502,7 @@ static int proc_BSSList_open( struct inode *inode, struct file *file ) { | |||
5502 | 5502 | ||
5503 | if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) | 5503 | if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) |
5504 | return -ENOMEM; | 5504 | return -ENOMEM; |
5505 | data = (struct proc_data *)file->private_data; | 5505 | data = file->private_data; |
5506 | if ((data->rbuffer = kmalloc( 1024, GFP_KERNEL )) == NULL) { | 5506 | if ((data->rbuffer = kmalloc( 1024, GFP_KERNEL )) == NULL) { |
5507 | kfree (file->private_data); | 5507 | kfree (file->private_data); |
5508 | return -ENOMEM; | 5508 | return -ENOMEM; |