Commit 1d7764c
committed
s390/modules: Simplify module_finalize() slightly
Preinitialize the return value, and break out the for loop in
module_finalize() in case of an error to get rid of an ifdef.
This makes it easier to add additional code, which may also depend
on config options.
Reviewed-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>1 parent c3d1746 commit 1d7764c
1 file changed
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
498 | | - | |
499 | | - | |
500 | | - | |
| 498 | + | |
501 | 499 | | |
502 | 500 | | |
503 | 501 | | |
| |||
529 | 527 | | |
530 | 528 | | |
531 | 529 | | |
532 | | - | |
533 | | - | |
534 | | - | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
535 | 533 | | |
536 | 534 | | |
537 | 535 | | |
538 | 536 | | |
539 | | - | |
| 537 | + | |
540 | 538 | | |
0 commit comments