Commit b4c1fde
ptp: vmclock: Remove goto-based cleanup logic
vmclock_probe() uses an "out:" label to return from the function on
error. This indicates that some cleanup operation is necessary.
However the label does not do anything as all resources are managed
through devres, making the code slightly harder to read.
Remove the label and just return directly.
Signed-off-by: Thomas Weißschuh <[email protected]>
Acked-by: Richard Cochran <[email protected]>
Reviewed-by: David Woodhouse <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>1 parent 9a884c3 commit b4c1fde
1 file changed
+13
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
509 | | - | |
| 509 | + | |
510 | 510 | | |
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
515 | | - | |
516 | | - | |
| 515 | + | |
517 | 516 | | |
518 | 517 | | |
519 | 518 | | |
520 | 519 | | |
521 | 520 | | |
522 | 521 | | |
523 | 522 | | |
524 | | - | |
| 523 | + | |
525 | 524 | | |
526 | 525 | | |
527 | 526 | | |
528 | 527 | | |
529 | 528 | | |
530 | 529 | | |
531 | | - | |
532 | | - | |
| 530 | + | |
533 | 531 | | |
534 | 532 | | |
535 | 533 | | |
536 | 534 | | |
537 | | - | |
| 535 | + | |
538 | 536 | | |
539 | 537 | | |
540 | 538 | | |
541 | 539 | | |
542 | | - | |
| 540 | + | |
543 | 541 | | |
544 | 542 | | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
| 543 | + | |
| 544 | + | |
549 | 545 | | |
550 | 546 | | |
551 | 547 | | |
552 | 548 | | |
553 | 549 | | |
554 | | - | |
| 550 | + | |
555 | 551 | | |
556 | 552 | | |
557 | 553 | | |
| |||
565 | 561 | | |
566 | 562 | | |
567 | 563 | | |
568 | | - | |
| 564 | + | |
569 | 565 | | |
570 | 566 | | |
571 | 567 | | |
| |||
575 | 571 | | |
576 | 572 | | |
577 | 573 | | |
578 | | - | |
| 574 | + | |
579 | 575 | | |
580 | 576 | | |
581 | 577 | | |
582 | 578 | | |
583 | 579 | | |
584 | 580 | | |
585 | | - | |
586 | | - | |
| 581 | + | |
587 | 582 | | |
588 | 583 | | |
589 | 584 | | |
590 | 585 | | |
591 | 586 | | |
592 | 587 | | |
593 | 588 | | |
594 | | - | |
595 | | - | |
| 589 | + | |
596 | 590 | | |
597 | 591 | | |
598 | 592 | | |
| |||
0 commit comments