fix itnull.cocci warnings
Subsystems (4)
PATCH 1/1 fix itnull.cocci warnings
The first argument to list_for_each_entry cannot be NULL.
Generated by: scripts/coccinelle/iterators/itnull.cocci
---
This code comes from the following git tree:
url:
https://github.com/0day-ci/linux/commits/Harsh-Jain/crypto-chcr-Bug-fixes/20170107-093356
base:
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
master
In-Reply-To:
<8e0086b56d8fb61637d179c32a09a1bca03c4186.1483599449.git.harsh@chelsio.com>
chcr_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/chelsio/chcr_core.c +1 -1
@@ -61,7 +61,7 @@ int assign_chcr_device(struct chcr_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 ;
Herbert Xu
maintainerQuoted 11 lines · Julia Lawall
The first argument to
list_for_each_entrycannot be NULL.Generated by:
scripts/coccinelle/iterators/itnull.cocciCC Harsh Jain <[email protected]>Signed-off-by Julia Lawall <[email protected]>Signed-off-by Fengguang Wu <[email protected]>---
This code comes from the following git tree:
Quoted 7 lines
url:
https://github.com/0day-ci/linux/commits/Harsh-Jain/crypto-chcr-Bug-fixes/20170107-093356
base:
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
master
In-Reply-To:
<8e0086b56d8fb61637d179c32a09a1bca03c4186.1483599449.git.harsh@chelsio.com>
Harsh, please fold this patch into your series when you resubmit.
Thanks,
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt