summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
authorJohannes Stezenbach <devnull@localhost>2005-02-17 18:49:31 +0000
committerJohannes Stezenbach <devnull@localhost>2005-02-17 18:49:31 +0000
commitb3e6dc9b22bb050275290a8d45c5c5617200d534 (patch)
treea6bd370eac44655b27a88a66b90a362020cdca08 /linux/drivers/media
parenta0ffcf1c9f8e8484b690b941fcdbb4e4be60eaeb (diff)
downloadmediapointer-dvb-s2-b3e6dc9b22bb050275290a8d45c5c5617200d534.tar.gz
mediapointer-dvb-s2-b3e6dc9b22bb050275290a8d45c5c5617200d534.tar.bz2
Remove unneeded test in av7110_ipack_free():
- calls are balanced; - vfree(NULL) is safe. Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r--linux/drivers/media/dvb/ttpci/av7110_ipack.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110_ipack.c b/linux/drivers/media/dvb/ttpci/av7110_ipack.c
index 7da276e5a..246640741 100644
--- a/linux/drivers/media/dvb/ttpci/av7110_ipack.c
+++ b/linux/drivers/media/dvb/ttpci/av7110_ipack.c
@@ -37,8 +37,7 @@ int av7110_ipack_init(struct ipack *p, int size,
void av7110_ipack_free(struct ipack *p)
{
- if (p->buf)
- vfree(p->buf);
+ vfree(p->buf);
}