Commit c9db75a06673abc7cbf275246931021bb254d1f5
Committed by
Tom Rini
1 parent
e3d7675acf
Exists in
v2017.01-smarct4x
and in
25 other branches
Cosmetic api: api_storage.c Comment style
Make comment style modifications Signed-off-by: Walt Feasel <waltfeasel@gmail.com>
Showing 1 changed file with 17 additions and 15 deletions Side-by-side Diff
api/api_storage.c
... | ... | @@ -116,8 +116,10 @@ |
116 | 116 | else |
117 | 117 | found = 1; |
118 | 118 | |
119 | - /* provide hint if there are more devices in | |
120 | - * this group to enumerate */ | |
119 | + /* | |
120 | + * provide hint if there are more devices in | |
121 | + * this group to enumerate | |
122 | + */ | |
121 | 123 | if (1 < specs[type].max_dev) |
122 | 124 | *more = 1; |
123 | 125 | |
... | ... | @@ -125,8 +127,10 @@ |
125 | 127 | for (i = 0; i < specs[type].max_dev; i++) |
126 | 128 | if (di->cookie == |
127 | 129 | (void *)blk_get_dev(specs[type].name, i)) { |
128 | - /* previous cookie found -- advance to the | |
129 | - * next device, if possible */ | |
130 | + /* | |
131 | + * previous cookie found -- advance to the | |
132 | + * next device, if possible | |
133 | + */ | |
130 | 134 | |
131 | 135 | if (++i >= specs[type].max_dev) { |
132 | 136 | /* out of range, no more to enum */ |
... | ... | @@ -141,8 +145,10 @@ |
141 | 145 | else |
142 | 146 | found = 1; |
143 | 147 | |
144 | - /* provide hint if there are more devices in | |
145 | - * this group to enumerate */ | |
148 | + /* | |
149 | + * provide hint if there are more devices in | |
150 | + * this group to enumerate | |
151 | + */ | |
146 | 152 | if ((i + 1) < specs[type].max_dev) |
147 | 153 | *more = 1; |
148 | 154 | |
... | ... | @@ -171,9 +177,8 @@ |
171 | 177 | } |
172 | 178 | |
173 | 179 | |
174 | -/* | |
175 | - * returns: ENUM_IDE, ENUM_USB etc. based on struct blk_desc | |
176 | - */ | |
180 | +/* returns: ENUM_IDE, ENUM_USB etc. based on struct blk_desc */ | |
181 | + | |
177 | 182 | static int dev_stor_type(struct blk_desc *dd) |
178 | 183 | { |
179 | 184 | int i, j; |
... | ... | @@ -187,9 +192,8 @@ |
187 | 192 | } |
188 | 193 | |
189 | 194 | |
190 | -/* | |
191 | - * returns: 0/1 whether cookie points to some device in this group | |
192 | - */ | |
195 | +/* returns: 0/1 whether cookie points to some device in this group */ | |
196 | + | |
193 | 197 | static int dev_is_stor(int type, struct device_info *di) |
194 | 198 | { |
195 | 199 | return (dev_stor_type(di->cookie) == type) ? 1 : 0; |
... | ... | @@ -300,9 +304,7 @@ |
300 | 304 | { |
301 | 305 | int i; |
302 | 306 | |
303 | - /* | |
304 | - * check: ide, usb, scsi, mmc | |
305 | - */ | |
307 | + /* check: ide, usb, scsi, mmc */ | |
306 | 308 | for (i = ENUM_IDE; i < ENUM_MAX; i ++) { |
307 | 309 | if (dev_enum_stor(i, di)) |
308 | 310 | return 1; |