rtl8723ds: Fix some checkpatch warnings and change default log level

The default debug level is reduced from 4 to 2.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger
2017-10-16 16:27:15 -05:00
parent 57b8112292
commit 27368d0b9c
12 changed files with 36 additions and 36 deletions

View File

@@ -1473,7 +1473,7 @@ enum ieee80211_state {
#define IP_FMT "%d.%d.%d.%d"
#define IP_ARG(x) ((u8 *)(x))[0], ((u8 *)(x))[1], ((u8 *)(x))[2], ((u8 *)(x))[3]
#define PORT_FMT "%u"
#define PORT_ARG(x) ntohs(*((u16 *)(x)))
#define PORT_ARG(x) ntohs(*((__be16 *)(x)))
#ifdef PLATFORM_FREEBSD /* Baron change func to macro */
#define is_multicast_mac_addr(Addr) ((((Addr[0]) & 0x01) == 0x01) && ((Addr[0]) != 0xff))

View File

@@ -1230,7 +1230,7 @@ enum rtw_h2c_cmd {
#define _SetRFReg_CMD_ _Write_RFREG_CMD_
#ifdef _RTW_CMD_C_
struct _cmd_callback rtw_cmd_callback[] = {
static struct _cmd_callback rtw_cmd_callback[] = {
{GEN_CMD_CODE(_Read_MACREG), &rtw_getmacreg_cmdrsp_callback}, /*0*/
{GEN_CMD_CODE(_Write_MACREG), NULL},
{GEN_CMD_CODE(_Read_BBREG), &rtw_getbbrfreg_cmdrsp_callback},

View File

@@ -1105,7 +1105,7 @@ u8 rtw_getmacreg_hdl(_adapter *padapter, u8 *pbuf);
#ifdef _RTW_CMD_C_
struct cmd_hdl wlancmds[] = {
static struct cmd_hdl wlancmds[] = {
GEN_DRV_CMD_HANDLER(sizeof(struct readMAC_parm), rtw_getmacreg) /*0*/
GEN_DRV_CMD_HANDLER(0, NULL)
GEN_DRV_CMD_HANDLER(0, NULL)

View File

@@ -131,9 +131,9 @@ struct stainfo_stats {
struct session_tracker {
_list list; /* session_tracker_queue */
u32 local_naddr;
u16 local_port;
__be16 local_port;
u32 remote_naddr;
u16 remote_port;
__be16 remote_port;
u32 set_time;
u8 status;
};