Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Yan, Zheng and committed by
Ingo Molnar
b2fa344d 7be6296f

+1 -1
+1 -1
arch/x86/kernel/cpu/perf_event_intel_uncore.c
··· 536 536 if (!uncore_box_is_fake(box)) 537 537 reg1->alloc |= alloc; 538 538 539 - return 0; 539 + return NULL; 540 540 fail: 541 541 for (; i >= 0; i--) { 542 542 if (alloc & (0x1 << i))