V4L/DVB: firedtv: reduce memset()s
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Wed, 18 Nov 2009 19:03:31 +0000 (16:03 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Feb 2010 18:10:48 +0000 (15:10 -0300)
commit1e4348c85a2643441174cfb7073f8cb1a313366f
treef8a73108411d488d630a311bfd9207c3f0163222
parent6385c5bf98a9922917a563af3fdbd514888fa4ac
V4L/DVB: firedtv: reduce memset()s

Before each FCP transdaction, the entire 512 bytes of the FCP frame were
cleared, then values filled in.

Clear only the bytes between filled-in bytes and end of the
  - request frame, or
  - response frame if data from a larger response will be needed, or
  - whole frame if data from a variable length response will be taken.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/firewire/firedtv-avc.c