path: root/tests/auto/network/kernel
diff options
authorZou Ya <>2020-11-24 19:54:09 +0800
committerVolker Hilsheimer <>2020-11-26 14:43:20 +0100
commit5b93f6cae692363ab03b0c9b0ae8efd0bb4ef499 (patch)
treec3f85874099bc91c0b411ef08f54abcd1a7dc1c4 /tests/auto/network/kernel
parent6cb36d825d365988ea7a601218bdd3a329290469 (diff)
Reduce the scope of variables in exec() and fetchNext()
The scope of the variable 'currBind' can be reduced if the variable 'r' is not 0. So declare the variable when the variable 'r' is 0. The local variable 'i' shadows outer variable in fetchNext(), so move it to the front of switch. Don't declare 'res' until we need and initialize it. Change-Id: Idfb220b96cfbcd4088fd7858ed9392d0a3e10aea Reviewed-by: Volker Hilsheimer <>
Diffstat (limited to 'tests/auto/network/kernel')
0 files changed, 0 insertions, 0 deletions