Skip to contentSkip to conversation

video-buf.c: remove dead code

PATCH In review Adrian Bunk 2 participants 2 messages Aug 27, 2007 – Aug 29, 2007 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 video-buf.c: remove dead code

This patch removes code that was both dead and pointless.

---
d72841ad9ded136818ab054613ab2f3e027af67f

drivers/media/video/video-buf.c +0 -2
index f6f31e1..87cf89a 100644
@@ -1200,8 +1200,6 @@ videobuf_vm_close(struct vm_area_struct *vma)
 		for (i = 0; i < VIDEO_MAX_FRAME; i++) {
 			if (NULL == q->bufs[i])
 				continue;
-			if (q->bufs[i])
-				;
 			if (q->bufs[i]->map != map)
 				continue;
 			q->bufs[i]->map   = NULL;
#1 lore raw

Adrian,

Em Seg, 2007-08-27 às 23:28 +0200, Adrian Bunk escreveu:

Quoted 1 line

This patch removes code that was both dead and pointless.

I've already handled this on my newer videobuf approach:

http://linuxtv.org/hg/~mchehab/videobuf/

Those patches are currently in tests. I expect to have those ready for 2.6.24.

Cheers,
Mauro