From: Nicolas Kaiser Date: Mon, 25 Oct 2010 23:25:42 +0000 (-0400) Subject: crypto: n2 - dubious error check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=14bd342e25ea0242369c229d33075348171b622b;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git crypto: n2 - dubious error check Looks like a copy-and-paste problem to me. Signed-off-by: Nicolas Kaiser Acked-by: David S. Miller Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/n2_core.c b/drivers/crypto/n2_core.c index 88ee01510ec0..76141262ea1d 100644 --- a/drivers/crypto/n2_core.c +++ b/drivers/crypto/n2_core.c @@ -1832,7 +1832,7 @@ static int __devinit get_irq_props(struct mdesc_handle *mdesc, u64 node, return -ENODEV; ino = mdesc_get_property(mdesc, node, "ino", &ino_len); - if (!intr) + if (!ino) return -ENODEV; if (intr_len != ino_len)