The patch titled Remove unnecessary check in drivers/rtc/rtc-v3020.c has been added to the -mm tree. Its filename is remove-unnecessary-check-in-drivers-rtc-rtc-v3020c.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: Remove unnecessary check in drivers/rtc/rtc-v3020.c From: Eric Sesterhenn <snakebyte@xxxxxx> Looks like the probe function always gets a valid pdev, and checking it after dereferencing it is pretty useless. This patch removes the check (cid #1365) Signed-off-by: Eric Sesterhenn <snakebyte@xxxxxx> Cc: Alessandro Zummo <a.zummo@xxxxxxxxxxxx> Cc: Raphael Assenat <raph@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/rtc/rtc-v3020.c | 3 --- 1 files changed, 3 deletions(-) diff -puN drivers/rtc/rtc-v3020.c~remove-unnecessary-check-in-drivers-rtc-rtc-v3020c drivers/rtc/rtc-v3020.c --- a/drivers/rtc/rtc-v3020.c~remove-unnecessary-check-in-drivers-rtc-rtc-v3020c +++ a/drivers/rtc/rtc-v3020.c @@ -169,9 +169,6 @@ static int rtc_probe(struct platform_dev if (pdev->resource[0].flags != IORESOURCE_MEM) return -EBUSY; - if (pdev == NULL) - return -EBUSY; - chip = kzalloc(sizeof *chip, GFP_KERNEL); if (!chip) return -ENOMEM; _ Patches currently in -mm which might be from snakebyte@xxxxxx are origin.patch git-arm.patch git-dvb.patch git-gfs2.patch possible-dereference-in.patch git-intelfb.patch remove-unnecessary-check-in-drivers-video-intelfb-intelfbhwc.patch remove-unnecessary-check-in-drivers-net-depcac.patch git-net.patch off-by-one-in-arch-ppc-platforms-mpc8.patch remove-unnecessary-check-in.patch git-scsi-misc.patch remove-unnecessary-check-in-drivers-scsi-sgc.patch overrun-in-drivers-scsi-scsic.patch uninitialized-variable-in-drivers-net-wan-syncpppc.patch off-by-one-in-drivers-char-mwave-mwaveddc.patch remove-unnecessary-check-in-drivers-rtc-rtc-v3020c.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