Skip to contentSkip to conversation

Staging: rtlwifi: efuse: fixed a line length coding style issue

PATCH Superseded Tom Todd 2 participants 2 messages Aug 13, 2018 – Aug 27, 2018 Staging

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Tom Todd

author
#0 lore raw

PATCH 1/1 Staging: rtlwifi: efuse: fixed a line length coding style issue

Fixed a code style issue. Line length over 80 characters.

---
 drivers/staging/rtlwifi/efuse.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/rtlwifi/efuse.c +2 -1
index 1dc71455f270..49ec9728fb04 100644
@@ -245,7 +245,8 @@ void read_efuse(struct ieee80211_hw *hw, u16 _offset, u16 _size_byte, u8 *pbuf)
 	if (!efuse_word)
 		goto out;
 	for (i = 0; i < EFUSE_MAX_WORD_UNIT; i++) {
-		efuse_word[i] = kcalloc(efuse_max_section, sizeof(u16), GFP_ATOMIC);
+		efuse_word[i] =
+			kcalloc(efuse_max_section, sizeof(u16), GFP_ATOMIC);
 		if (!efuse_word[i])
 			goto done;
 	}
Signature · 1 line
2.18.0
maintainer
#1 lore raw
Quoted 12 lines · Tom Todd

Fixed a code style issue. Line length over 80 characters.

---
 drivers/staging/rtlwifi/efuse.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/rtlwifi/efuse.c +0 -0
index 1dc71455f270..49ec9728fb04 100644

drivers/staging/rtlwifi/efuse.c void read_efuse(struct ieee80211_hw *hw, u16 _offset, u16 _size_byte, u8 *pbuf) · line 249

Quoted 6 lines
drivers/staging/rtlwifi/efuse.c +2 -1
@@ -245,7 +245,8 @@ void read_efuse(struct ieee80211_hw *hw, u16 _offset, u16 _size_byte, u8 *pbuf)
 	if (!efuse_word)
 		goto out;
 	for (i = 0; i < EFUSE_MAX_WORD_UNIT; i++) {
-		efuse_word[i] = kcalloc(efuse_max_section, sizeof(u16), GFP_ATOMIC);
+		efuse_word[i] =
+			kcalloc(efuse_max_section, sizeof(u16), GFP_ATOMIC);

No, keep the kcalloc on the same line and just wrap any needed parameters.

thanks,

greg k-h