Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux-dvb] [patch 2.6.11-rc3 3/3] av7110: remove test before vfree
Remove unneeded test:
- calls are balanced;
- vfree(NULL) is safe.
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
drivers/media/dvb/ttpci/av7110_ipack.c | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)
diff -puN drivers/media/dvb/ttpci/av7110_ipack.c~dvb-080 drivers/media/dvb/ttpci/av7110_ipack.c
--- linux-2.6.11-rc3/drivers/media/dvb/ttpci/av7110_ipack.c~dvb-080 2005-02-10 00:30:13.167906312 +0100
+++ linux-2.6.11-rc3-fr/drivers/media/dvb/ttpci/av7110_ipack.c 2005-02-10 00:30:20.660687977 +0100
@@ -37,8 +37,7 @@ int av7110_ipack_init(struct ipack *p, i
void av7110_ipack_free(struct ipack * p)
{
- if (p->buf)
- vfree(p->buf);
+ vfree(p->buf);
}
_
Home |
Main Index |
Thread Index