Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d57429f0 authored by Larry Finger's avatar Larry Finger
Browse files

staging: rtl8192e: Cleanup checkpatch -f warnings and errors - Part XII



This patch removes all the errors and most of the warnings generated by
checkpatch -f.

Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
parent fbf76538
Loading
Loading
Loading
Loading
+647 −578

File changed.

Preview size limit exceeded, changes collapsed.

+15 −15
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@
#include <linux/version.h>
#include <linux/wireless.h>
#include <linux/etherdevice.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <net/arp.h>

#include "rtllib.h"
@@ -98,7 +98,8 @@ static inline void rtllib_networks_initialize(struct rtllib_device *ieee)
	INIT_LIST_HEAD(&ieee->network_free_list);
	INIT_LIST_HEAD(&ieee->network_list);
	for (i = 0; i < MAX_NETWORK_COUNT; i++)
		list_add_tail(&ieee->networks[i].list, &ieee->network_free_list);
		list_add_tail(&ieee->networks[i].list,
			      &ieee->network_free_list);
}

struct net_device *alloc_rtllib(int sizeof_priv)
@@ -162,9 +163,8 @@ struct net_device *alloc_rtllib(int sizeof_priv)
	memset(ieee->swcamtable, 0, sizeof(struct sw_cam_table) * 32);
	rtllib_softmac_init(ieee);

	ieee->pHTInfo = (struct rt_hi_throughput*)kzalloc(sizeof(struct rt_hi_throughput), GFP_KERNEL);
	if (ieee->pHTInfo == NULL)
	{
	ieee->pHTInfo = kzalloc(sizeof(struct rt_hi_throughput), GFP_KERNEL);
	if (ieee->pHTInfo == NULL) {
		RTLLIB_DEBUG(RTLLIB_DL_ERR, "can't alloc memory for HTInfo\n");
		return NULL;
	}
@@ -192,10 +192,10 @@ struct net_device *alloc_rtllib(int sizeof_priv)
	return NULL;
}


void free_rtllib(struct net_device *dev)
{
	struct rtllib_device *ieee = (struct rtllib_device *)netdev_priv_rsl(dev);
	struct rtllib_device *ieee = (struct rtllib_device *)
				      netdev_priv_rsl(dev);
	int i;
	if (ieee->pHTInfo != NULL) {
		kfree(ieee->pHTInfo);
@@ -219,11 +219,11 @@ void free_rtllib(struct net_device *dev)
	free_netdev(dev);
}

u32 rtllib_debug_level = 0;
u32 rtllib_debug_level;
static int debug = \
			    RTLLIB_DL_ERR
			    ;
struct proc_dir_entry *rtllib_proc = NULL;
struct proc_dir_entry *rtllib_proc;

static int show_debug_level(char *page, char **start, off_t offset,
			    int count, int *eof, void *data)
+0 −1
Original line number Diff line number Diff line
@@ -286,7 +286,6 @@ rtllib_classify(struct sk_buff *skb, u8 bIsAmsdu)
	}
}

#define SN_LESS(a, b)		(((a-b)&0x800)!=0)
void rtllib_tx_query_agg_cap(struct rtllib_device* ieee, struct sk_buff* skb, struct cb_desc * tcb_desc)
{
	struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;