Skip to contentSkip to conversation

usbnet: fix the indentation of one code snippet

PATCH Applied Dongliang Mu 3 participants 3 messages Jan 23, 2021 – Feb 1, 2021

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

PATCH 1/1 usbnet: fix the indentation of one code snippet

Every line of code should start with tab (8 characters)

---
 drivers/net/usb/usbnet.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/net/usb/usbnet.c +6 -6
index 1447da1d5729..305c5f7b9a9b 100644
@@ -1964,12 +1964,12 @@ static int __usbnet_read_cmd(struct usbnet *dev, u8 cmd, u8 reqtype,
 			      cmd, reqtype, value, index, buf, size,
 			      USB_CTRL_GET_TIMEOUT);
 	if (err > 0 && err <= size) {
-        if (data)
-            memcpy(data, buf, err);
-        else
-            netdev_dbg(dev->net,
-                "Huh? Data requested but thrown away.\n");
-    }
+		if (data)
+			memcpy(data, buf, err);
+		else
+			netdev_dbg(dev->net,
+				   "Huh? Data requested but thrown away.\n");
+	}
 	kfree(buf);
 out:
 	return err;
Signature · 1 line
2.25.1
#1 lore raw
This patch was applied to netdev/net-next.git (refs/heads/master):

Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

Quoted 6 lines · On Sat, 23 Jan 2021 13:11:02 +0800 you wrote:

Every line of code should start with tab (8 characters)

---
 drivers/net/usb/usbnet.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

Here is the summary with links:
- usbnet: fix the indentation of one code snippet

    https://git.kernel.org/netdev/net-next/c/2961f562bb7b

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html