* [PATCH net] ptp: fix code indentation issues
@ 2021-10-27 23:18 Carlos Llamas
2021-10-28 13:50 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Carlos Llamas @ 2021-10-27 23:18 UTC (permalink / raw)
To: Richard Cochran, David S. Miller
Cc: Yang Yingliang, netdev, kernel-team, linux-kernel, Carlos Llamas
This fixes the following checkpatch.pl errors:
ERROR: code indent should use tabs where possible
+^I if (ptp->pps_source)$
ERROR: code indent should use tabs where possible
+^I pps_unregister_source(ptp->pps_source);$
ERROR: code indent should use tabs where possible
+^I kthread_destroy_worker(ptp->kworker);$
Fixes: 4225fea1cb28 ("ptp: Fix possible memory leak in ptp_clock_register()")
Signed-off-by: Carlos Llamas <cmllamas@google.com>
---
drivers/ptp/ptp_clock.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/ptp/ptp_clock.c b/drivers/ptp/ptp_clock.c
index f9b2d66b0443..0e4bc8b9329d 100644
--- a/drivers/ptp/ptp_clock.c
+++ b/drivers/ptp/ptp_clock.c
@@ -284,11 +284,11 @@ struct ptp_clock *ptp_clock_register(struct ptp_clock_info *info,
/* Create a posix clock and link it to the device. */
err = posix_clock_register(&ptp->clock, &ptp->dev);
if (err) {
- if (ptp->pps_source)
- pps_unregister_source(ptp->pps_source);
+ if (ptp->pps_source)
+ pps_unregister_source(ptp->pps_source);
if (ptp->kworker)
- kthread_destroy_worker(ptp->kworker);
+ kthread_destroy_worker(ptp->kworker);
put_device(&ptp->dev);
--
2.33.0.1079.g6e70778dc9-goog
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net] ptp: fix code indentation issues
2021-10-27 23:18 [PATCH net] ptp: fix code indentation issues Carlos Llamas
@ 2021-10-28 13:50 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-10-28 13:50 UTC (permalink / raw)
To: Carlos Llamas
Cc: richardcochran, davem, yangyingliang, netdev, kernel-team,
linux-kernel
Hello:
This patch was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:
On Wed, 27 Oct 2021 23:18:02 +0000 you wrote:
> This fixes the following checkpatch.pl errors:
>
> ERROR: code indent should use tabs where possible
> +^I if (ptp->pps_source)$
>
> ERROR: code indent should use tabs where possible
> +^I pps_unregister_source(ptp->pps_source);$
>
> [...]
Here is the summary with links:
- [net] ptp: fix code indentation issues
https://git.kernel.org/netdev/net-next/c/11195bf5a355
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] 2+ messages in thread
end of thread, other threads:[~2021-10-28 13:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-27 23:18 [PATCH net] ptp: fix code indentation issues Carlos Llamas
2021-10-28 13:50 ` patchwork-bot+netdevbpf
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).