Skip to contentSkip to conversation

ieee802154: cc2520: Fix space before , coding style issue

PATCH In review Mohammad Jamal 3 participants 3 messages Jan 23, 2015 – Feb 2, 2015

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ieee802154: cc2520: Fix space before , coding style issue

This patch removes the warnings (space before , ) shown by checkpatch.pl

---
 drivers/net/ieee802154/cc2520.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ieee802154/cc2520.c +2 -2
index a43c8ac..665a3db 100644
@@ -549,14 +549,14 @@ cc2520_ed(struct ieee802154_hw *hw, u8 *level)
 	u8 rssi;
 	int ret;
 
-	ret = cc2520_read_register(priv , CC2520_RSSISTAT, &status);
+	ret = cc2520_read_register(priv, CC2520_RSSISTAT, &status);
 	if (ret)
 		return ret;
 
 	if (status != RSSI_VALID)
 		return -EINVAL;
 
-	ret = cc2520_read_register(priv , CC2520_RSSI, &rssi);
+	ret = cc2520_read_register(priv, CC2520_RSSI, &rssi);
 	if (ret)
 		return ret;
 
Signature · 1 line
1.7.9.5
Acked-by on v1 1/1
#1 lore raw

Hi Jamal,

Quoted 2 lines · Mohammad Jamal

This patch removes the warnings (space before , ) shown by checkpatch.pl

Thanks for the patch.

Quoted 27 lines
---
  drivers/net/ieee802154/cc2520.c |    4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ieee802154/cc2520.c +2 -2
index a43c8ac..665a3db 100644
@@ -549,14 +549,14 @@ cc2520_ed(struct ieee802154_hw *hw, u8 *level)
  	u8 rssi;
  	int ret;
 
-	ret = cc2520_read_register(priv , CC2520_RSSISTAT, &status);
+	ret = cc2520_read_register(priv, CC2520_RSSISTAT, &status);
  	if (ret)
  		return ret;
 
  	if (status != RSSI_VALID)
  		return -EINVAL;
 
-	ret = cc2520_read_register(priv , CC2520_RSSI, &rssi);
+	ret = cc2520_read_register(priv, CC2520_RSSI, &rssi);
  	if (ret)
  		return ret;
 
Signature · 2 lines
Thanks and Regards,
Varka Bhadram.