Commit ae6062c
remoteproc: mtk_scp: Use dev_err_probe() where possible
Simplify the probe function, where possible, by using dev_err_probe().
While at it, as to increase human readability, also remove some
unnecessary forced void pointer casts that were previously used in
error checking.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220124120915.41292-3-angelogioacchino.delregno@collabora.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>1 parent 77c792b commit ae6062c
1 file changed
Lines changed: 12 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
757 | 757 | | |
758 | 758 | | |
759 | 759 | | |
760 | | - | |
761 | | - | |
762 | | - | |
763 | | - | |
| 760 | + | |
| 761 | + | |
764 | 762 | | |
765 | 763 | | |
766 | 764 | | |
| |||
770 | 768 | | |
771 | 769 | | |
772 | 770 | | |
773 | | - | |
774 | | - | |
775 | | - | |
776 | | - | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
777 | 775 | | |
778 | 776 | | |
779 | 777 | | |
780 | 778 | | |
781 | 779 | | |
782 | 780 | | |
783 | | - | |
784 | | - | |
| 781 | + | |
| 782 | + | |
785 | 783 | | |
786 | | - | |
787 | | - | |
| 784 | + | |
788 | 785 | | |
789 | 786 | | |
790 | 787 | | |
791 | 788 | | |
792 | 789 | | |
793 | 790 | | |
794 | 791 | | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | | - | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
799 | 795 | | |
800 | 796 | | |
801 | 797 | | |
| |||
0 commit comments