Skip to contentSkip to conversation

bnxt_re: fix itnull.cocci warnings

PATCH New Julia Lawall 1 participant 1 message Dec 9, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bnxt_re: fix itnull.cocci warnings

list_for_each_entry iterator variable cannot be NULL.

Generated by: scripts/coccinelle/iterators/itnull.cocci

---

url:
https://github.com/0day-ci/linux/commits/Selvin-Xavier/Broadcom-RoCE-Driver-bnxt_re/20161209-154823
base: https://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma.git
master

I received some other warnings as well. Not sure if they have been passed along already:

Quoted 1 line
Quoted 1 line

drivers/infiniband/hw/bnxtre/bnxt_re_ib_verbs.c:2455:4-14: code aligned

with following code on line 2456
--

Quoted 1 line
Quoted 1 line

drivers/infiniband/hw/bnxtre/bnxt_re_main.c:1047:2-20: code aligned

with following code on line 1048
drivers/infiniband/hw/bnxtre/bnxt_re_main.c:1188:3-43: code aligned
with following code on line 1190
--

Quoted 1 line
Quoted 1 line

drivers/infiniband/hw/bnxtre/bnxt_re_main.c:834:6-8: ERROR: iterator

variable bound on line 832 cannot be NULL