Bluetooth: Mesh: Restrict scope of variables in health_get_registered()

Don't declare the variables in a wider scope than what they're needed
for.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
1 file changed