diff options
author | Nicolas Kaiser <nikai@nikai.net> | 2010-10-25 19:25:42 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2010-10-25 19:25:42 -0400 |
commit | 14bd342e25ea0242369c229d33075348171b622b (patch) | |
tree | 350c12e5cefd79c0baf336c0e375afac3f0fbfc7 /drivers | |
parent | 72e58063d63c5f0a7bf65312f1e3a5ed9bb5c2ff (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/n2_core.c b/drivers/crypto/n2_core.c index 88ee01510ec..76141262ea1 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) |