Skip to contentSkip to conversation

staging/wlan-ng: Fix line alignment

PATCH In review [email protected] 2 participants 2 messages Oct 22, 2020 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging/wlan-ng: Fix line alignment

From: Izabela Bakollari <[email protected]>

Fix code alignment. Issue reported by checkpatch.pl

---
 drivers/staging/wlan-ng/prism2mgmt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/wlan-ng/prism2mgmt.c +2 -2
index a908ff301707..1bd36dc2b7ff 100644
@@ -1198,8 +1198,8 @@ int prism2mgmt_wlansniff(struct wlandevice *wlandev, void *msgp)
 			if (wlandev->netdev->type == ARPHRD_ETHER) {
 				/* Save macport 0 state */
 				result = hfa384x_drvr_getconfig16(hw,
-						  HFA384x_RID_CNFPORTTYPE,
-						  &hw->presniff_port_type);
+								  HFA384x_RID_CNFPORTTYPE,
+								  &hw->presniff_port_type);
 				if (result) {
 					netdev_dbg
 					(wlandev->netdev,
Signature · 1 line
2.18.4
#1 lore raw
Quoted 3 lines · On Thu, 22 Oct 2020, [email protected] wrote:

From: Izabela Bakollari <[email protected]>

Fix code alignment. Issue reported by checkpatch.pl

Try to find something other than "Fix" to describe what you have done. What kind of change have you made and why is it a good idea?

Quoted 11 lines
---
 drivers/staging/wlan-ng/prism2mgmt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/wlan-ng/prism2mgmt.c +0 -0
index a908ff301707..1bd36dc2b7ff 100644

drivers/staging/wlan-ng/prism2mgmt.c int prism2mgmt_wlansniff(struct wlandevice *wlandev, void *msgp) · line 1202

Quoted 7 lines
drivers/staging/wlan-ng/prism2mgmt.c +2 -2
@@ -1198,8 +1198,8 @@ int prism2mgmt_wlansniff(struct wlandevice *wlandev, void *msgp)
 			if (wlandev->netdev->type == ARPHRD_ETHER) {
 				/* Save macport 0 state */
 				result = hfa384x_drvr_getconfig16(hw,
-						  HFA384x_RID_CNFPORTTYPE,
-						  &hw->presniff_port_type);
+								  HFA384x_RID_CNFPORTTYPE,
+								  &hw->presniff_port_type);

I think that the code was nicer before. Staying inside 80 characters is worth something, and having the arguments lined up with the ( seems lees important in this case. It could be a concern if the arguments eg ended up right under the function name, because that would be easy to misread, but that is not the case here.

julia

Quoted 11 lines
drivers/staging/wlan-ng/prism2mgmt.c +0 -1
 				if (result) {
 					netdev_dbg
 					(wlandev->netdev,
--

2.18.4

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20201022132218.235744-1-izabela.bakollari%40gmail.com.