Commit 89e0341
bcache: use sysfs_match_string() instead of __sysfs_match_string()
The arrays (of strings) that are passed to __sysfs_match_string() are
static, so use sysfs_match_string() which does an implicit ARRAY_SIZE()
over these arrays.
Functionally, this doesn't change anything.
The change is more cosmetic.
It only shrinks the static arrays by 1 byte each.
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent f960fac commit 89e0341
1 file changed
+8
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | | - | |
32 | | - | |
| 30 | + | |
33 | 31 | | |
34 | 32 | | |
35 | 33 | | |
36 | 34 | | |
37 | 35 | | |
38 | | - | |
39 | | - | |
| 36 | + | |
40 | 37 | | |
41 | 38 | | |
42 | 39 | | |
43 | 40 | | |
44 | | - | |
45 | | - | |
| 41 | + | |
46 | 42 | | |
47 | 43 | | |
48 | 44 | | |
| |||
333 | 329 | | |
334 | 330 | | |
335 | 331 | | |
336 | | - | |
| 332 | + | |
337 | 333 | | |
338 | 334 | | |
339 | 335 | | |
| |||
344 | 340 | | |
345 | 341 | | |
346 | 342 | | |
347 | | - | |
| 343 | + | |
348 | 344 | | |
349 | 345 | | |
350 | 346 | | |
| |||
799 | 795 | | |
800 | 796 | | |
801 | 797 | | |
802 | | - | |
| 798 | + | |
803 | 799 | | |
804 | 800 | | |
805 | 801 | | |
| |||
1063 | 1059 | | |
1064 | 1060 | | |
1065 | 1061 | | |
1066 | | - | |
| 1062 | + | |
1067 | 1063 | | |
1068 | 1064 | | |
1069 | 1065 | | |
| |||
0 commit comments