netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] usbnet: fix the indentation of one code snippet
@ 2021-01-23  5:11 Dongliang Mu
  2021-01-27  1:30 ` patchwork-bot+netdevbpf
  2021-02-01 10:34 ` Oliver Neukum
  0 siblings, 2 replies; 3+ messages in thread
From: Dongliang Mu @ 2021-01-23  5:11 UTC (permalink / raw)
  To: oneukum, davem, kuba; +Cc: netdev, linux-usb, linux-kernel, Dongliang Mu

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

Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com>
---
 drivers/net/usb/usbnet.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c
index 1447da1d5729..305c5f7b9a9b 100644
--- a/drivers/net/usb/usbnet.c
+++ b/drivers/net/usb/usbnet.c
@@ -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;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] usbnet: fix the indentation of one code snippet
  2021-01-23  5:11 [PATCH] usbnet: fix the indentation of one code snippet Dongliang Mu
@ 2021-01-27  1:30 ` patchwork-bot+netdevbpf
  2021-02-01 10:34 ` Oliver Neukum
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-01-27  1:30 UTC (permalink / raw)
  To: =?utf-8?b?5oWV5Yas5LquIDxtdWRvbmdsaWFuZ2FiY2RAZ21haWwuY29tPg==?=
  Cc: oneukum, davem, kuba, netdev, linux-usb, linux-kernel

Hello:

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

On Sat, 23 Jan 2021 13:11:02 +0800 you wrote:
> Every line of code should start with tab (8 characters)
> 
> Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com>
> ---
>  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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] usbnet: fix the indentation of one code snippet
  2021-01-23  5:11 [PATCH] usbnet: fix the indentation of one code snippet Dongliang Mu
  2021-01-27  1:30 ` patchwork-bot+netdevbpf
@ 2021-02-01 10:34 ` Oliver Neukum
  1 sibling, 0 replies; 3+ messages in thread
From: Oliver Neukum @ 2021-02-01 10:34 UTC (permalink / raw)
  To: Dongliang Mu, davem, kuba; +Cc: netdev, linux-usb, linux-kernel

Am Samstag, den 23.01.2021, 13:11 +0800 schrieb Dongliang Mu:
> Every line of code should start with tab (8 characters)
> 
> Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com>
Acked-by: Oliver Neukum <oneukum@suse.com>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-02-01 10:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-23  5:11 [PATCH] usbnet: fix the indentation of one code snippet Dongliang Mu
2021-01-27  1:30 ` patchwork-bot+netdevbpf
2021-02-01 10:34 ` Oliver Neukum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).