V4L/DVB (12755): af9015: improve usb control message function slightly
authorAntti Palosaari <crope@iki.fi>
Sat, 12 Sep 2009 23:46:30 +0000 (20:46 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 19 Sep 2009 02:47:53 +0000 (23:47 -0300)
commit06565d7a4231b77a1181f5b853b076f374535649
tree95358577cafb9a366fb1b3b3694e26df975793d1
parent9c863278097a4905a78ee0d70d417641aecfac2e
V4L/DVB (12755): af9015: improve usb control message function slightly

* define names for few values
* decrease buffer len by one byte which was not used
* add check for buffer overflow for sure
* indentation fixes
* remove useless 0 len check from memcpy
It should not happen and if it happens memcpy should not do anything.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/af9015.c