+ tifm-fix-null-ptr-and-style.patch added to -mm tree

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

 



The patch titled
     tifm: fix NULL ptr and style
has been added to the -mm tree.  Its filename is
     tifm-fix-null-ptr-and-style.patch

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

------------------------------------------------------
Subject: tifm: fix NULL ptr and style
From: Randy Dunlap <randy.dunlap@xxxxxxxxxx>

Fix sparse NULL warning;
drivers/misc/tifm_core.c:223:17: warning: Using plain integer as NULL pointer

Fix style while there.

Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/misc/tifm_core.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff -puN drivers/misc/tifm_core.c~tifm-fix-null-ptr-and-style drivers/misc/tifm_core.c
--- a/drivers/misc/tifm_core.c~tifm-fix-null-ptr-and-style
+++ a/drivers/misc/tifm_core.c
@@ -219,8 +219,9 @@ static int tifm_device_remove(struct dev
 	struct tifm_driver *drv = fm_dev->drv;
 
 	if (drv) {
-		if (drv->remove) drv->remove(fm_dev);
-		fm_dev->drv = 0;
+		if (drv->remove)
+			drv->remove(fm_dev);
+		fm_dev->drv = NULL;
 	}
 
 	put_device(dev);
_

Patches currently in -mm which might be from randy.dunlap@xxxxxxxxxx are

origin.patch
ext4-fix-printk-format-warnings.patch
md-fix-printk-format-warnings-seen-on-powerpc64.patch
acpi-make-ec_transaction-not-extern.patch
git-ieee1394.patch
mtd-fix-kernel-doc-warnings.patch
com20020-build-fix.patch
parisc-fix-module_param-iommu-permission.patch
pci-i386-style-cleanups.patch
tifm-fix-null-ptr-and-style.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