Repository navigation
Commit 5def489
mtd: do not duplicate length and offset checks in drivers
We already verify that offset and length are within the MTD device size
in the MTD API functions. Let's remove the duplicated checks in drivers.
This patch only affects the following API's:
'mtd_erase()'
'mtd_point()'
'mtd_unpoint()'
'mtd_get_unmapped_area()'
'mtd_read()'
'mtd_write()'
'mtd_panic_write()'
'mtd_lock()'
'mtd_unlock()'
'mtd_is_locked()'
'mtd_block_isbad()'
'mtd_block_markbad()'
This patch adds a bit of noise by removing too sparse empty lines, but this is
not too bad.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>1 parent 8273a0c commit 5def489
23 files changed
Lines changed: 3 additions & 321 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1324 | 1324 | | |
1325 | 1325 | | |
1326 | 1326 | | |
1327 | | - | |
| 1327 | + | |
1328 | 1328 | | |
1329 | 1329 | | |
1330 | 1330 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
904 | 904 | | |
905 | 905 | | |
906 | 906 | | |
907 | | - | |
908 | | - | |
909 | | - | |
910 | | - | |
911 | | - | |
912 | | - | |
913 | 907 | | |
914 | 908 | | |
915 | 909 | | |
| |||
1155 | 1149 | | |
1156 | 1150 | | |
1157 | 1151 | | |
1158 | | - | |
1159 | | - | |
1160 | | - | |
1161 | 1152 | | |
1162 | 1153 | | |
1163 | 1154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | 176 | | |
183 | 177 | | |
184 | 178 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | 107 | | |
113 | 108 | | |
114 | 109 | | |
| |||
190 | 185 | | |
191 | 186 | | |
192 | 187 | | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | 188 | | |
198 | 189 | | |
199 | 190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
602 | 602 | | |
603 | 603 | | |
604 | 604 | | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | 605 | | |
610 | 606 | | |
611 | 607 | | |
| |||
748 | 744 | | |
749 | 745 | | |
750 | 746 | | |
751 | | - | |
752 | | - | |
753 | | - | |
754 | | - | |
755 | 747 | | |
756 | 748 | | |
757 | 749 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | 386 | | |
391 | 387 | | |
392 | 388 | | |
| |||
494 | 490 | | |
495 | 491 | | |
496 | 492 | | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | 493 | | |
502 | 494 | | |
503 | 495 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
581 | 581 | | |
582 | 582 | | |
583 | 583 | | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | 584 | | |
589 | 585 | | |
590 | 586 | | |
| |||
700 | 696 | | |
701 | 697 | | |
702 | 698 | | |
703 | | - | |
704 | | - | |
705 | | - | |
706 | | - | |
707 | 699 | | |
708 | 700 | | |
709 | 701 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | 370 | | |
374 | 371 | | |
375 | 372 | | |
| |||
442 | 439 | | |
443 | 440 | | |
444 | 441 | | |
445 | | - | |
446 | 442 | | |
447 | 443 | | |
448 | 444 | | |
| |||
526 | 522 | | |
527 | 523 | | |
528 | 524 | | |
529 | | - | |
530 | 525 | | |
531 | 526 | | |
532 | 527 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | 291 | | |
295 | 292 | | |
296 | 293 | | |
| |||
353 | 350 | | |
354 | 351 | | |
355 | 352 | | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | 353 | | |
360 | 354 | | |
361 | 355 | | |
| |||
423 | 417 | | |
424 | 418 | | |
425 | 419 | | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | 420 | | |
430 | 421 | | |
431 | 422 | | |
| |||
515 | 506 | | |
516 | 507 | | |
517 | 508 | | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | 509 | | |
522 | 510 | | |
523 | 511 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 62 | | |
66 | 63 | | |
67 | | - | |
68 | 64 | | |
69 | 65 | | |
70 | 66 | | |
| |||
73 | 69 | | |
74 | 70 | | |
75 | 71 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | 72 | | |
80 | 73 | | |
81 | | - | |
82 | 74 | | |
83 | 75 | | |
84 | 76 | | |
| |||
0 commit comments