summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorNicolas Kaiser <nikai@nikai.net>2010-10-26 01:25:42 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2010-10-26 01:25:42 +0200
commit14bd342e25ea0242369c229d33075348171b622b (patch)
tree350c12e5cefd79c0baf336c0e375afac3f0fbfc7 /drivers
parentMerge branch 'davinci-for-linus' of git://git.kernel.org/pub/scm/linux/kernel... (diff)
downloadlinux-14bd342e25ea0242369c229d33075348171b622b.tar.xz
linux-14bd342e25ea0242369c229d33075348171b622b.zip
crypto: n2 - dubious error check
Looks like a copy-and-paste problem to me. Signed-off-by: Nicolas Kaiser <nikai@nikai.net> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/crypto/n2_core.c2
1 files changed, 1 insertions, 1 deletions
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)