Commit 29ae5c0
committed
modpost: refactor check_sec_ref()
We can replace &elf->sechdrs[i] with &sechdrs[i] to slightly shorten
the code because we already have the local variable 'sechdrs'.
However, defining 'sechdr' instead shortens the code further.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>1 parent bd78c9d commit 29ae5c0
1 file changed
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1518 | 1518 | | |
1519 | 1519 | | |
1520 | 1520 | | |
1521 | | - | |
1522 | 1521 | | |
1523 | 1522 | | |
1524 | 1523 | | |
1525 | | - | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
1526 | 1527 | | |
1527 | | - | |
1528 | | - | |
1529 | | - | |
1530 | | - | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
1531 | 1532 | | |
1532 | 1533 | | |
1533 | 1534 | | |
| |||
0 commit comments