Skip to content

Commit 11195bf

Browse files
Carlos Llamasdavem330
authored andcommitted
ptp: fix code indentation issues
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: 4225fea ("ptp: Fix possible memory leak in ptp_clock_register()") Signed-off-by: Carlos Llamas <cmllamas@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent a406290 commit 11195bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/ptp/ptp_clock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,11 +284,11 @@ struct ptp_clock *ptp_clock_register(struct ptp_clock_info *info,
284284
/* Create a posix clock and link it to the device. */
285285
err = posix_clock_register(&ptp->clock, &ptp->dev);
286286
if (err) {
287-
if (ptp->pps_source)
288-
pps_unregister_source(ptp->pps_source);
287+
if (ptp->pps_source)
288+
pps_unregister_source(ptp->pps_source);
289289

290290
if (ptp->kworker)
291-
kthread_destroy_worker(ptp->kworker);
291+
kthread_destroy_worker(ptp->kworker);
292292

293293
put_device(&ptp->dev);
294294

0 commit comments

Comments
 (0)