[PATCH 4/5] Staging: csr: sme_blocking.c: fix up space issues in pointer variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: root <root@ubuntu.(none)>

This patch replaces "(foo*)" to "(foo *)".

Signed-off-by: Sungju Huh <sjhuh@xxxxxxxxxxxxxxxxx>
---
 drivers/staging/csr/sme_blocking.c |   51 ++++++++++++++++++------------------
 1 file changed, 25 insertions(+), 26 deletions(-)

diff --git a/drivers/staging/csr/sme_blocking.c b/drivers/staging/csr/sme_blocking.c
index a1de8db..610ee92 100644
--- a/drivers/staging/csr/sme_blocking.c
+++ b/drivers/staging/csr/sme_blocking.c
@@ -223,7 +223,7 @@ _sme_wait_for_reply(unifi_priv_t *priv,
 int sme_mgt_wifi_on(unifi_priv_t *priv)
 {
 	u16 numElements;
-	CsrWifiSmeDataBlock* dataList;
+	CsrWifiSmeDataBlock *dataList;
 #ifdef CSR_SUPPORT_WEXT_AP
 	int r;
 #endif
@@ -245,7 +245,7 @@ int sme_mgt_wifi_on(unifi_priv_t *priv)
 	r = sme_init_request(priv);
 	if (r)
 		return -EIO;
-	
+
 #endif
 	CsrWifiSmeWifiOnReqSend(0, priv->sta_mac_address, numElements, dataList);
 #ifdef CSR_SUPPORT_WEXT_AP
@@ -330,7 +330,6 @@ int sme_mgt_scan_full(unifi_priv_t *priv,
 	r = sme_init_request(priv);
 	if (r)
 		return -EIO;
-	
 
 	/* If a channel list is provided, do an active scan */
 	if (is_active) {
@@ -798,8 +797,8 @@ int sme_mgt_versions_get(unifi_priv_t *priv, CsrWifiSmeVersions *versions)
 
 	/* store the reply */
 	if (versions != NULL) {
-		memcpy((unsigned char*)versions,
-			(unsigned char*)&priv->sme_reply.versions,
+		memcpy((unsigned char *)versions,
+			(unsigned char *)&priv->sme_reply.versions,
 			sizeof(CsrWifiSmeVersions));
 	}
 
@@ -842,8 +841,8 @@ int sme_mgt_power_config_get(unifi_priv_t *priv, CsrWifiSmePowerConfig *powerCon
 
 	/* store the reply */
 	if (powerConfig != NULL) {
-		memcpy((unsigned char*)powerConfig,
-			(unsigned char*)&priv->sme_reply.powerConfig,
+		memcpy((unsigned char *)powerConfig,
+			(unsigned char *)&priv->sme_reply.powerConfig,
 			sizeof(CsrWifiSmePowerConfig));
 	}
 
@@ -884,8 +883,8 @@ int sme_mgt_host_config_get(unifi_priv_t *priv, CsrWifiSmeHostConfig *hostConfig
 
 	/* store the reply */
 	if (hostConfig != NULL) {
-		memcpy((unsigned char*)hostConfig,
-			(unsigned char*)&priv->sme_reply.hostConfig,
+		memcpy((unsigned char *)hostConfig,
+			(unsigned char *)&priv->sme_reply.hostConfig,
 			sizeof(CsrWifiSmeHostConfig));
 	}
 
@@ -927,8 +926,8 @@ int sme_mgt_sme_config_get(unifi_priv_t *priv, CsrWifiSmeStaConfig *staConfig, C
 
 	/* store the reply */
 	if (deviceConfig != NULL) {
-		memcpy((unsigned char*)deviceConfig,
-			(unsigned char*)&priv->sme_reply.deviceConfig,
+		memcpy((unsigned char *)deviceConfig,
+			(unsigned char *)&priv->sme_reply.deviceConfig,
 			sizeof(CsrWifiSmeDeviceConfig));
 	}
 
@@ -944,8 +943,8 @@ int sme_mgt_sme_config_get(unifi_priv_t *priv, CsrWifiSmeStaConfig *staConfig, C
 
 	/* store the reply */
 	if (staConfig != NULL) {
-		memcpy((unsigned char*)staConfig,
-			(unsigned char*)&priv->sme_reply.staConfig,
+		memcpy((unsigned char *)staConfig,
+			(unsigned char *)&priv->sme_reply.staConfig,
 			sizeof(CsrWifiSmeStaConfig));
 	}
 
@@ -987,8 +986,8 @@ int sme_mgt_coex_info_get(unifi_priv_t *priv, CsrWifiSmeCoexInfo *coexInfo)
 
 	/* store the reply */
 	if (coexInfo != NULL) {
-		memcpy((unsigned char*)coexInfo,
-			(unsigned char*)&priv->sme_reply.coexInfo,
+		memcpy((unsigned char *)coexInfo,
+			(unsigned char *)&priv->sme_reply.coexInfo,
 			sizeof(CsrWifiSmeCoexInfo));
 	}
 
@@ -1031,8 +1030,8 @@ int sme_mgt_coex_config_get(unifi_priv_t *priv, CsrWifiSmeCoexConfig *coexConfig
 
 	/* store the reply */
 	if (coexConfig != NULL) {
-		memcpy((unsigned char*)coexConfig,
-			(unsigned char*)&priv->sme_reply.coexConfig,
+		memcpy((unsigned char *)coexConfig,
+			(unsigned char *)&priv->sme_reply.coexConfig,
 			sizeof(CsrWifiSmeCoexConfig));
 	}
 
@@ -1073,8 +1072,8 @@ int sme_mgt_mib_config_get(unifi_priv_t *priv, CsrWifiSmeMibConfig *mibConfig)
 
 	/* store the reply */
 	if (mibConfig != NULL) {
-		memcpy((unsigned char*)mibConfig,
-			(unsigned char*)&priv->sme_reply.mibConfig,
+		memcpy((unsigned char *)mibConfig,
+			(unsigned char *)&priv->sme_reply.mibConfig,
 			sizeof(CsrWifiSmeMibConfig));
 	}
 
@@ -1115,8 +1114,8 @@ int sme_mgt_connection_info_get(unifi_priv_t *priv, CsrWifiSmeConnectionInfo *co
 
 	/* store the reply */
 	if (connectionInfo != NULL) {
-		memcpy((unsigned char*)connectionInfo,
-			(unsigned char*)&priv->sme_reply.connectionInfo,
+		memcpy((unsigned char *)connectionInfo,
+			(unsigned char *)&priv->sme_reply.connectionInfo,
 			sizeof(CsrWifiSmeConnectionInfo));
 	}
 
@@ -1157,8 +1156,8 @@ int sme_mgt_connection_config_get(unifi_priv_t *priv, CsrWifiSmeConnectionConfig
 
 	/* store the reply */
 	if (connectionConfig != NULL) {
-		memcpy((unsigned char*)connectionConfig,
-			(unsigned char*)&priv->sme_reply.connectionConfig,
+		memcpy((unsigned char *)connectionConfig,
+			(unsigned char *)&priv->sme_reply.connectionConfig,
 			sizeof(CsrWifiSmeConnectionConfig));
 	}
 
@@ -1199,8 +1198,8 @@ int sme_mgt_connection_stats_get(unifi_priv_t *priv, CsrWifiSmeConnectionStats *
 
 	/* store the reply */
 	if (connectionStats != NULL) {
-		memcpy((unsigned char*)connectionStats,
-			(unsigned char*)&priv->sme_reply.connectionStats,
+		memcpy((unsigned char *)connectionStats,
+			(unsigned char *)&priv->sme_reply.connectionStats,
 			sizeof(CsrWifiSmeConnectionStats));
 	}
 
@@ -1412,7 +1411,7 @@ int sme_ap_stop(unifi_priv_t *priv, u16 interface_tag)
 }
 
 int sme_ap_start(unifi_priv_t *priv, u16 interface_tag,
-		CsrWifiSmeApConfig_t * ap_config)
+		CsrWifiSmeApConfig_t *ap_config)
 {
 	int r;
 	CsrWifiSmeApP2pGoConfig p2p_go_param;
-- 
1.7.9.5

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux