mtd/drivers/mtd inftlcore.c,1.19,1.20 nftlcore.c,1.98,1.99
gleixner at infradead.org
gleixner at infradead.org
Tue Nov 29 15:01:58 EST 2005
- Previous message: mtd/include/linux/mtd cfi.h,1.57,1.58 mtd.h,1.61,1.62
- Next message: mtd/drivers/mtd/chips cfi_cmdset_0001.c, 1.186,
1.187 cfi_cmdset_0002.c, 1.122, 1.123 cfi_cmdset_0020.c, 1.22, 1.23
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/mtd/drivers/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv14005/drivers/mtd
Modified Files:
inftlcore.c nftlcore.c
Log Message:
Big mainline sync: Driver model updates, kfree fixup, version.h removals
Index: inftlcore.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/inftlcore.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- inftlcore.c 7 Nov 2005 11:14:20 -0000 1.19
+++ inftlcore.c 29 Nov 2005 20:01:25 -0000 1.20
@@ -126,10 +126,8 @@
}
if (add_mtd_blktrans_dev(&inftl->mbd)) {
- if (inftl->PUtable)
- kfree(inftl->PUtable);
- if (inftl->VUtable)
- kfree(inftl->VUtable);
+ kfree(inftl->PUtable);
+ kfree(inftl->VUtable);
kfree(inftl);
return;
}
@@ -147,10 +145,8 @@
del_mtd_blktrans_dev(dev);
- if (inftl->PUtable)
- kfree(inftl->PUtable);
- if (inftl->VUtable)
- kfree(inftl->VUtable);
+ kfree(inftl->PUtable);
+ kfree(inftl->VUtable);
kfree(inftl);
}
Index: nftlcore.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nftlcore.c,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -r1.98 -r1.99
--- nftlcore.c 7 Nov 2005 11:14:21 -0000 1.98
+++ nftlcore.c 29 Nov 2005 20:01:25 -0000 1.99
@@ -114,10 +114,8 @@
}
if (add_mtd_blktrans_dev(&nftl->mbd)) {
- if (nftl->ReplUnitTable)
- kfree(nftl->ReplUnitTable);
- if (nftl->EUNtable)
- kfree(nftl->EUNtable);
+ kfree(nftl->ReplUnitTable);
+ kfree(nftl->EUNtable);
kfree(nftl);
return;
}
@@ -133,10 +131,8 @@
DEBUG(MTD_DEBUG_LEVEL1, "NFTL: remove_dev (i=%d)\n", dev->devnum);
del_mtd_blktrans_dev(dev);
- if (nftl->ReplUnitTable)
- kfree(nftl->ReplUnitTable);
- if (nftl->EUNtable)
- kfree(nftl->EUNtable);
+ kfree(nftl->ReplUnitTable);
+ kfree(nftl->EUNtable);
kfree(nftl);
}
- Previous message: mtd/include/linux/mtd cfi.h,1.57,1.58 mtd.h,1.61,1.62
- Next message: mtd/drivers/mtd/chips cfi_cmdset_0001.c, 1.186,
1.187 cfi_cmdset_0002.c, 1.122, 1.123 cfi_cmdset_0020.c, 1.22, 1.23
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the linux-mtd-cvs
mailing list