 variables declared at top of function scope
 variables declared at top of function scope

X-Original-Commit: ef3024f99d6b805e37b1a8e91057e4992e98b845

apache/mynewt-nimble,apache/mynewt-nimble,apache/mynewt-nimble,apache/mynewt-nimble,apache/mynewt-nimble