Commit ee1ed7a
ata: libata-transport: instantiate struct ata_internal statically
Struct ata_internal is only instantiated once, in module init code.
So we can also instantiate it statically, which allows simplifying
the code.
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Niklas Cassel <cassel@kernel.org>1 parent 182caa1 commit ee1ed7a
3 files changed
Lines changed: 28 additions & 42 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6779 | 6779 | | |
6780 | 6780 | | |
6781 | 6781 | | |
6782 | | - | |
6783 | | - | |
6784 | | - | |
6785 | | - | |
6786 | | - | |
6787 | 6782 | | |
6788 | 6783 | | |
6789 | | - | |
6790 | 6784 | | |
6791 | | - | |
6792 | | - | |
| 6785 | + | |
6793 | 6786 | | |
6794 | 6787 | | |
6795 | 6788 | | |
6796 | 6789 | | |
6797 | | - | |
| 6790 | + | |
6798 | 6791 | | |
6799 | 6792 | | |
6800 | 6793 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
745 | 745 | | |
746 | 746 | | |
747 | 747 | | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
748 | 765 | | |
749 | 766 | | |
750 | 767 | | |
| |||
754 | 771 | | |
755 | 772 | | |
756 | 773 | | |
757 | | - | |
758 | | - | |
759 | | - | |
760 | | - | |
761 | | - | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
762 | 777 | | |
763 | | - | |
764 | | - | |
765 | | - | |
766 | | - | |
767 | | - | |
768 | | - | |
769 | | - | |
770 | | - | |
771 | | - | |
772 | | - | |
773 | | - | |
774 | | - | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
| 778 | + | |
782 | 779 | | |
783 | 780 | | |
784 | 781 | | |
785 | 782 | | |
786 | 783 | | |
787 | 784 | | |
788 | | - | |
| 785 | + | |
789 | 786 | | |
790 | | - | |
791 | | - | |
792 | | - | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
797 | 790 | | |
798 | 791 | | |
799 | 792 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
0 commit comments