[dev] move dev to next for each loop in device_find

Change-Id: I792623ca1486071a15c3373fac10cf24dde0c869
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>