mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
PCI: ibmphp: Remove unneeded NULL test
Remove unneeded NULL test. The index variable of list_for_each_entry is never NULL, as it is the structure that contains the list pointer. Generated by: scripts/coccinelle/iterators/itnull.cocci Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> CC: Geliang Tang <geliangtang@163.com>
This commit is contained in:
parent
2ac83cccab
commit
4058937a40
1 changed files with 0 additions and 3 deletions
|
@ -503,9 +503,6 @@ static int __init init_ops(void)
|
|||
int rc;
|
||||
|
||||
list_for_each_entry(slot_cur, &ibmphp_slot_head, ibm_slot_list) {
|
||||
if (!slot_cur)
|
||||
return -ENODEV;
|
||||
|
||||
debug("BEFORE GETTING SLOT STATUS, slot # %x\n",
|
||||
slot_cur->number);
|
||||
if (slot_cur->ctrl->revision == 0xFF)
|
||||
|
|
Loading…
Add table
Reference in a new issue