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:
Родитель
8a13449fce
Коммит
ee3bd84f55
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче