qcacld-3.0: Fix checkpatch warnings (SPACING)
Fix checkpatch warnings (SPACING).
Change-Id: I966fe641b4722cc15584defc42c90921090687fb
CRs-Fixed: 2126814
diff --git a/uapi/linux/a_debug.h b/uapi/linux/a_debug.h
index 3a5fd4c..d7a81c2 100644
--- a/uapi/linux/a_debug.h
+++ b/uapi/linux/a_debug.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013-2016 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2013-2017 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -150,9 +150,9 @@
#ifdef WLAN_DEBUG
/* for source files that will instantiate the debug variables */
-#define ATH_DEBUG_INSTANTIATE_MODULE_VAR(s,name,moddesc,initmask,count,descriptions) \
+#define ATH_DEBUG_INSTANTIATE_MODULE_VAR(s, name, moddesc, initmask, count, descriptions) \
ATH_DEBUG_MODULE_DBG_INFO GET_ATH_MODULE_DEBUG_VAR_NAME(s) = \
- {NULL,(name),(moddesc),0,(initmask),count,(descriptions)}
+ {NULL, (name), (moddesc), 0, (initmask), (count), (descriptions)}
#ifdef ATH_MODULE_NAME
extern ATH_DEBUG_MODULE_DBG_INFO
@@ -160,12 +160,12 @@
#define AR_DEBUG_LVL_CHECK(lvl) (GET_ATH_MODULE_DEBUG_VAR_MASK(ATH_MODULE_NAME) & (lvl))
#endif /* ATH_MODULE_NAME */
-#define ATH_DEBUG_SET_DEBUG_MASK(s,lvl) GET_ATH_MODULE_DEBUG_VAR_MASK(s) = (lvl)
+#define ATH_DEBUG_SET_DEBUG_MASK(s, lvl) GET_ATH_MODULE_DEBUG_VAR_MASK(s) = (lvl)
#define ATH_DEBUG_DECLARE_EXTERN(s) \
extern ATH_DEBUG_MODULE_DBG_INFO GET_ATH_MODULE_DEBUG_VAR_NAME(s)
-#define AR_DEBUG_PRINTBUF(buffer, length, desc) debug_dump_bytes(buffer,length,desc)
+#define AR_DEBUG_PRINTBUF(buffer, length, desc) debug_dump_bytes(buffer, length, desc)
#define AR_DEBUG_ASSERT A_ASSERT
@@ -181,12 +181,12 @@
#else /* !DEBUG */
/* NON DEBUG */
-#define ATH_DEBUG_INSTANTIATE_MODULE_VAR(s,name,moddesc,initmask,count,descriptions)
+#define ATH_DEBUG_INSTANTIATE_MODULE_VAR(s, name, moddesc, initmask, count, descriptions)
#define AR_DEBUG_LVL_CHECK(lvl) 0
#define AR_DEBUG_PRINTBUF(buffer, length, desc)
#define AR_DEBUG_ASSERT(test)
#define ATH_DEBUG_DECLARE_EXTERN(s)
-#define ATH_DEBUG_SET_DEBUG_MASK(s,lvl)
+#define ATH_DEBUG_SET_DEBUG_MASK(s, lvl)
#define A_DUMP_MODULE_DEBUG_INFO(s)
#define A_REGISTER_MODULE_DEBUG_INFO(s)
diff --git a/uapi/linux/osapi_linux.h b/uapi/linux/osapi_linux.h
index b74b6a5..cc3e4cf 100644
--- a/uapi/linux/osapi_linux.h
+++ b/uapi/linux/osapi_linux.h
@@ -83,7 +83,7 @@
QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR, ## args)
#define A_PRINTF_LOG(args ...) \
QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR, ## args)
-#define A_SNPRINTF(buf, len, args ...) snprintf (buf, len, args)
+#define A_SNPRINTF(buf, len, args ...) snprintf(buf, len, args)
/*
* Timer Functions
diff --git a/uapi/linux/pktlog_ac_fmt.h b/uapi/linux/pktlog_ac_fmt.h
index ee5b4ab..8b03aec 100644
--- a/uapi/linux/pktlog_ac_fmt.h
+++ b/uapi/linux/pktlog_ac_fmt.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012-2016 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2012-2017 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -299,7 +299,7 @@
#define PKTLOG_MOV_RD_IDX(_rd_offset, _log_buf, _log_size) \
do { \
- if((_rd_offset + sizeof(struct ath_pktlog_hdr) + \
+ if ((_rd_offset + sizeof(struct ath_pktlog_hdr) + \
((struct ath_pktlog_hdr *)((_log_buf)->log_data + \
(_rd_offset)))->size) <= _log_size) { \
_rd_offset = ((_rd_offset) + sizeof(struct ath_pktlog_hdr) + \
@@ -311,7 +311,7 @@
} \
(_rd_offset) = (((_log_size) - (_rd_offset)) >= \
sizeof(struct ath_pktlog_hdr)) ? _rd_offset : 0; \
- } while(0)
+ } while (0)
/**
* enum tx_pkt_fate - tx packet fate