Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 4225fea1cb28 ("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>

authored by

Carlos Llamas and committed by
David S. Miller
11195bf5 a406290a

+3 -3
+3 -3
drivers/ptp/ptp_clock.c
··· 284 284 /* Create a posix clock and link it to the device. */ 285 285 err = posix_clock_register(&ptp->clock, &ptp->dev); 286 286 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); 289 289 290 290 if (ptp->kworker) 291 - kthread_destroy_worker(ptp->kworker); 291 + kthread_destroy_worker(ptp->kworker); 292 292 293 293 put_device(&ptp->dev); 294 294