Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ef9977c authored by Eric Sesterhenn's avatar Eric Sesterhenn Committed by Greg Kroah-Hartman
Browse files

pciehp: Remove unnecessary check in pciehp_ctrl.c



this was spotted by coverity (cid #819). We dereference p_slot
earlier in the function, and i found no way it could become NULL
anywhere.

Signed-off-by: default avatarEric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent dd5619cb
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -797,7 +797,6 @@ int pciehp_enable_slot(struct slot *p_slot)
		p_slot->hpc_ops->get_latch_status(p_slot, &getstatus);
	}

	if (p_slot)
	update_slot_info(p_slot);

	mutex_unlock(&p_slot->ctrl->crit_sect);