Skip to content

Commit

Permalink
crypto: api - Fix checkpatch errors
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Hartmann <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
RichiH authored and herbertx committed Feb 16, 2010
1 parent 189bd4b commit 3d01a33
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions crypto/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* Software Foundation; either version 2 of the License, or (at your option)
* any later version.
*
*/
Expand Down Expand Up @@ -288,11 +288,11 @@ static int crypto_init_ops(struct crypto_tfm *tfm, u32 type, u32 mask)

case CRYPTO_ALG_TYPE_COMPRESS:
return crypto_init_compress_ops(tfm);

default:
break;
}

BUG();
return -EINVAL;
}
Expand All @@ -315,10 +315,9 @@ static void crypto_exit_ops(struct crypto_tfm *tfm)
case CRYPTO_ALG_TYPE_COMPRESS:
crypto_exit_compress_ops(tfm);
break;

default:
BUG();

}
}

Expand Down Expand Up @@ -593,12 +592,12 @@ int crypto_has_alg(const char *name, u32 type, u32 mask)
{
int ret = 0;
struct crypto_alg *alg = crypto_alg_mod_lookup(name, type, mask);

if (!IS_ERR(alg)) {
crypto_mod_put(alg);
ret = 1;
}

return ret;
}
EXPORT_SYMBOL_GPL(crypto_has_alg);
Expand Down

0 comments on commit 3d01a33

Please sign in to comment.