From: Milton Miller Date: Tue, 10 May 2011 19:29:57 +0000 (+0000) Subject: powerpc: Return early if irq_host lookup type is wrong X-Git-Tag: v3.0-rc1~385^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d441681a4df7822e6ef6fcc0320bb14d2a06dbb;p=pandora-kernel.git powerpc: Return early if irq_host lookup type is wrong If for some reason the code incrorectly calls the wrong function to manage the revmap, not only should we warn, we should take action. However, in the paths we expect to be taken every delivered interrupt change to WARN_ON_ONCE. Use the if (WARN_ON(x)) format to get the unlikely for free. Signed-off-by: Milton Miller Reviewed-by: Grant Likely Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed