diff options
| author | anlan_cs <vic.lan@pica8.com> | 2022-02-06 23:47:49 -0500 |
|---|---|---|
| committer | anlan_cs <vic.lan@pica8.com> | 2022-03-05 06:57:35 +0800 |
| commit | 38eda16a24b5839b104a878ea5052dd2919cbda5 (patch) | |
| tree | a362a6dc67d70bc5760271d550cd2c360ec53c2f /pimd/pim_pim.c | |
| parent | 2821405a69838f8c144620a9a59aff56d51bd761 (diff) | |
zebra: Delay the usage of one variable until need
In the loop, local variable `ip` is always set even if the check condition
is not satisfied.
Avoid the redundant set, move this set exactly after the check condition is
satisfied. Set `ip` only if the check condition is met, otherwise needn't.
Signed-off-by: anlan_cs <vic.lan@pica8.com>
Diffstat (limited to 'pimd/pim_pim.c')
0 files changed, 0 insertions, 0 deletions
