From: Peter Zijlstra Date: Thu, 21 May 2015 08:57:24 +0000 (+0200) Subject: perf/x86/intel: Simplify the dynamic constraint code somewhat X-Git-Tag: omap-for-v4.2/fixes-rc1^2~181^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aaf932e8161e45291cc85085b6d850f1bbdf53c8;p=pandora-kernel.git perf/x86/intel: Simplify the dynamic constraint code somewhat We have two 'struct event_constraint' local variables in intel_get_excl_constraints(): 'cx' and 'c'. Instead of using 'cx' after the dynamic allocation, put all 'cx' inside the dynamic allocation block and use 'c' outside of it. Also use direct assignment to copy the structure; let the compiler figure it out. Signed-off-by: Peter Zijlstra (Intel) Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Thomas Gleixner Cc: Vince Weaver Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed