V4L/DVB (6122): ivtvfb: fix an obvious bug in ivtvfb_release_buffers()

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
Adrian Bunk 2007-08-28 03:28:04 -03:00 committed by Mauro Carvalho Chehab
parent 641ed49db6
commit 136280322d

View File

@ -1064,8 +1064,8 @@ static void ivtvfb_release_buffers (struct ivtv *itv)
struct osd_info *oi = itv->osd_info;
/* Release cmap */
if (oi->ivtvfb_info.cmap.len);
fb_dealloc_cmap(&oi->ivtvfb_info.cmap);
if (oi->ivtvfb_info.cmap.len)
fb_dealloc_cmap(&oi->ivtvfb_info.cmap);
/* Release pseudo palette */
if (oi->ivtvfb_info.pseudo_palette)