Commit d904b8e
iio: adc: ad7124: use guard(mutex) to simplify return paths
Use guard(mutex) in a couple of functions to allow direct returns. This
simplifies the code a bit and will make later changes easier.
cleanup.h was already included for prior use of __free()
Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>1 parent 1b4956c commit d904b8e
1 file changed
Lines changed: 12 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
739 | 739 | | |
740 | 740 | | |
741 | 741 | | |
742 | | - | |
743 | 742 | | |
744 | | - | |
| 743 | + | |
745 | 744 | | |
746 | 745 | | |
747 | 746 | | |
748 | | - | |
749 | | - | |
750 | | - | |
751 | | - | |
| 747 | + | |
| 748 | + | |
752 | 749 | | |
753 | 750 | | |
754 | | - | |
| 751 | + | |
| 752 | + | |
755 | 753 | | |
756 | | - | |
757 | | - | |
758 | | - | |
759 | | - | |
| 754 | + | |
| 755 | + | |
760 | 756 | | |
761 | 757 | | |
762 | 758 | | |
| |||
772 | 768 | | |
773 | 769 | | |
774 | 770 | | |
775 | | - | |
| 771 | + | |
776 | 772 | | |
777 | | - | |
| 773 | + | |
778 | 774 | | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | 775 | | |
783 | 776 | | |
784 | 777 | | |
| |||
810 | 803 | | |
811 | 804 | | |
812 | 805 | | |
813 | | - | |
| 806 | + | |
| 807 | + | |
814 | 808 | | |
815 | 809 | | |
816 | 810 | | |
817 | 811 | | |
818 | 812 | | |
819 | 813 | | |
820 | 814 | | |
821 | | - | |
822 | | - | |
823 | | - | |
| 815 | + | |
824 | 816 | | |
825 | | - | |
826 | 817 | | |
827 | 818 | | |
828 | | - | |
829 | | - | |
830 | 819 | | |
831 | 820 | | |
832 | 821 | | |
| |||
0 commit comments