mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
crypto: chcr - fix itnull.cocci warnings
The first argument to list_for_each_entry cannot be NULL. Generated by: scripts/coccinelle/iterators/itnull.cocci Signed-off-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Harsh Jain <harsh@chelsio.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
8a13449fce
commit
ee3bd84f55
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ int assign_chcr_device(struct chcr_dev **dev)
|
|||
*/
|
||||
mutex_lock(&dev_mutex); /* TODO ? */
|
||||
list_for_each_entry(u_ctx, &uld_ctx_list, entry)
|
||||
if (u_ctx && u_ctx->dev) {
|
||||
if (u_ctx->dev) {
|
||||
*dev = u_ctx->dev;
|
||||
ret = 0;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue