diff options
author | Arnaldo Carvalho de Melo <acme@mandriva.com> | 2005-09-22 02:57:55 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@mandriva.com> | 2005-09-22 02:57:55 -0400 |
commit | 0eb8017242cb7e8b18af4751b03646436b8f90e3 (patch) | |
tree | dd006059d1da23b4cd62d20fdedd9083615bd803 /net | |
parent | 5a770c0262262e96979fe05d5c2fa1d1f409dbdc (diff) |
[LLC]: Mark llc_find_next_offset as __init, saving some more bytes
Signed-off-by: Jochen Friedrich <jochen@scram.de>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/llc/llc_conn.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/llc/llc_conn.c b/net/llc/llc_conn.c index 4c644bc70eae..1f659e56d8e2 100644 --- a/net/llc/llc_conn.c +++ b/net/llc/llc_conn.c | |||
@@ -544,14 +544,14 @@ u8 llc_data_accept_state(u8 state) | |||
544 | } | 544 | } |
545 | 545 | ||
546 | /** | 546 | /** |
547 | * find_next_offset - finds offset for next category of transitions | 547 | * llc_find_next_offset - finds offset for next category of transitions |
548 | * @state: state table. | 548 | * @state: state table. |
549 | * @offset: start offset. | 549 | * @offset: start offset. |
550 | * | 550 | * |
551 | * Finds offset of next category of transitions in transition table. | 551 | * Finds offset of next category of transitions in transition table. |
552 | * Returns the start index of next category. | 552 | * Returns the start index of next category. |
553 | */ | 553 | */ |
554 | static u16 find_next_offset(struct llc_conn_state *state, u16 offset) | 554 | static u16 __init llc_find_next_offset(struct llc_conn_state *state, u16 offset) |
555 | { | 555 | { |
556 | u16 cnt = 0; | 556 | u16 cnt = 0; |
557 | struct llc_conn_state_trans **next_trans; | 557 | struct llc_conn_state_trans **next_trans; |
@@ -578,8 +578,8 @@ void __init llc_build_offset_table(void) | |||
578 | next_offset = 0; | 578 | next_offset = 0; |
579 | for (ev_type = 0; ev_type < NBR_CONN_EV; ev_type++) { | 579 | for (ev_type = 0; ev_type < NBR_CONN_EV; ev_type++) { |
580 | llc_offset_table[state][ev_type] = next_offset; | 580 | llc_offset_table[state][ev_type] = next_offset; |
581 | next_offset += find_next_offset(curr_state, | 581 | next_offset += llc_find_next_offset(curr_state, |
582 | next_offset) + 1; | 582 | next_offset) + 1; |
583 | } | 583 | } |
584 | } | 584 | } |
585 | } | 585 | } |