Skip to content

Commit

Permalink
crypto: n2 - dubious error check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nicolas Kaiser authored and Herbert Xu committed Oct 25, 2010
1 parent 72e5806 commit 14bd342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/n2_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 14bd342

Please sign in to comment.