git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from:
3fe963a
)
ring: reduce scope of local variables
author
Bruce Richardson
<bruce.richardson@intel.com>
Wed, 29 Mar 2017 15:21:27 +0000
(16:21 +0100)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Wed, 29 Mar 2017 20:32:20 +0000
(22:32 +0200)
The local variable i is only used for loop control so define it in
the enqueue and dequeue blocks directly, rather than at the function
level.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
No differences found