Commit da8b094
staging: r8188eu: merge _rtw_enqueue_cmd into its caller
The _rtw_enqueue_cmd function is called only by rtw_enqueue_cmd.
When _rtw_enqueue_cmd is called, the caller has already checked that the
obj parameter is not NULL. _rtw_enqueue_cmd returns _SUCCESS in any case.
We can merge the two functions and simplify the error handling.
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Link: https://lore.kernel.org/r/20230211165045.414424-1-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent eec8cca commit da8b094
1 file changed
Lines changed: 9 additions & 38 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | 31 | | |
58 | 32 | | |
59 | 33 | | |
| |||
125 | 99 | | |
126 | 100 | | |
127 | 101 | | |
128 | | - | |
| 102 | + | |
129 | 103 | | |
130 | 104 | | |
131 | 105 | | |
132 | | - | |
| 106 | + | |
133 | 107 | | |
134 | 108 | | |
135 | 109 | | |
136 | | - | |
137 | | - | |
| 110 | + | |
138 | 111 | | |
139 | | - | |
| 112 | + | |
140 | 113 | | |
141 | 114 | | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
146 | 118 | | |
147 | | - | |
148 | | - | |
149 | | - | |
| 119 | + | |
| 120 | + | |
150 | 121 | | |
151 | 122 | | |
152 | 123 | | |
| |||
0 commit comments