+ remove-unnecessary-check-in.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     emove unnecessary check in drivers/pci/hotplug/pciehp_ctrl.c

has been added to the -mm tree.  Its filename is

     remove-unnecessary-check-in.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: emove unnecessary check in drivers/pci/hotplug/pciehp_ctrl.c
From: Eric Sesterhenn <snakebyte@xxxxxx>

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: Eric Sesterhenn <snakebyte@xxxxxx>
Cc: Greg KH <greg@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/pci/hotplug/pciehp_ctrl.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)

diff -puN drivers/pci/hotplug/pciehp_ctrl.c~remove-unnecessary-check-in drivers/pci/hotplug/pciehp_ctrl.c
--- a/drivers/pci/hotplug/pciehp_ctrl.c~remove-unnecessary-check-in
+++ a/drivers/pci/hotplug/pciehp_ctrl.c
@@ -790,8 +790,7 @@ int pciehp_enable_slot(struct slot *p_sl
 		p_slot->hpc_ops->get_latch_status(p_slot, &getstatus);
 	}
 
-	if (p_slot)
-		update_slot_info(p_slot);
+	update_slot_info(p_slot);
 
 	return rc;
 }
_

Patches currently in -mm which might be from snakebyte@xxxxxx are

git-dvb.patch
git-gfs2.patch
git-intelfb.patch
git-netdev-all.patch
remove-unnecessary-check-in-drivers-net-depcac.patch
remove-unnecessary-check-in.patch
signedness-issue-in-drivers-scsi-iprc.patch
signedness-issue-in-drivers-scsi-osstc.patch
remove-unnecessary-check-in-drivers-scsi-sgc.patch
uninitialized-variable-in-drivers-net-wan-syncpppc.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux