commit | b2fa344d0c275ea4436bfc3a97708f2c938ac0eb | [log] [tgz] |
---|---|---|
author | Yan, Zheng <zheng.z.yan@intel.com> | Wed Jun 05 16:30:25 2013 +0800 |
committer | Ingo Molnar <mingo@kernel.org> | Wed Jun 19 13:04:55 2013 +0200 |
tree | 6e41140992e56cc9003788ea33d22f1b0b946145 | |
parent | 7be6296fdd75f716f7348251433ea68c4b362cf3 [diff] |
perf/x86/intel: Fix sparse warning Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com> Signed-off-by: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/1370421025-10986-1-git-send-email-zheng.z.yan@intel.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
diff --git a/arch/x86/kernel/cpu/perf_event_intel_uncore.c b/arch/x86/kernel/cpu/perf_event_intel_uncore.c index adabe6f..9dd9975 100644 --- a/arch/x86/kernel/cpu/perf_event_intel_uncore.c +++ b/arch/x86/kernel/cpu/perf_event_intel_uncore.c
@@ -536,7 +536,7 @@ if (!uncore_box_is_fake(box)) reg1->alloc |= alloc; - return 0; + return NULL; fail: for (; i >= 0; i--) { if (alloc & (0x1 << i))