Commit-ID: 036290b07ce3a5996584fdbe7128acb24ff39f04 Gitweb: http://git.kernel.org/tip/036290b07ce3a5996584fdbe7128acb24ff39f04 Author: Michael Ellerman <michael@xxxxxxxxxxxxxx> AuthorDate: Tue, 17 Jul 2012 15:00:16 +1000 Committer: Pekka Enberg <penberg@xxxxxxxxxx> CommitDate: Tue, 17 Jul 2012 17:07:21 +0300 kvm tools, powerpc: Reformatting in find_cpu_info() Matt's enter key was broken when he wrote this ;) Acked-by: Matt Evans <matt@xxxxxxxxxx> Signed-off-by: Michael Ellerman <michael@xxxxxxxxxxxxxx> Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx> --- tools/kvm/powerpc/cpu_info.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/kvm/powerpc/cpu_info.c b/tools/kvm/powerpc/cpu_info.c index 7326f5b..586b232 100644 --- a/tools/kvm/powerpc/cpu_info.c +++ b/tools/kvm/powerpc/cpu_info.c @@ -75,13 +75,15 @@ static struct pvr_info host_pvr_info[] = { struct cpu_info *find_cpu_info(u32 pvr) { unsigned int i; + for (i = 0; i < ARRAY_SIZE(host_pvr_info); i++) { - if ((pvr & host_pvr_info[i].pvr_mask) == - host_pvr_info[i].pvr) { + if ((pvr & host_pvr_info[i].pvr_mask) == host_pvr_info[i].pvr) { return host_pvr_info[i].cpu_info; } } + /* Didn't find anything? Rut-ro. */ pr_warning("Host CPU unsupported by kvmtool\n"); + return &cpu_dummy_info; } -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html