diff options
author | Nicolas Kaiser <nikai@nikai.net> | 2010-10-25 23:25:42 (GMT) |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2010-10-25 23:25:42 (GMT) |
commit | 14bd342e25ea0242369c229d33075348171b622b (patch) | |
tree | 350c12e5cefd79c0baf336c0e375afac3f0fbfc7 | |
parent | 72e58063d63c5f0a7bf65312f1e3a5ed9bb5c2ff (diff) | |
download | linux-fsl-qoriq-14bd342e25ea0242369c229d33075348171b622b.tar.xz |
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>
-rw-r--r-- | drivers/crypto/n2_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/n2_core.c b/drivers/crypto/n2_core.c index 88ee015..7614126 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) |