V4L/DVB: dib7000p: reduce large stack usage
authorRandy Dunlap <randy.dunlap@oracle.com>
Mon, 8 Feb 2010 23:30:44 +0000 (20:30 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:58:30 +0000 (12:58 -0300)
commit30d81bb086c84d54cde4dd4d0c75d9455224632b
tree052b04fc32e00d36f549f1990cd3492e5a05de1b
parent84e2f037ce9672d0fb118e3e82cecfe6122ace3f
V4L/DVB: dib7000p: reduce large stack usage

This patch reduces static stack usage of one of the 2 top offenders
as listed by 'make checkstack':

Building with CONFIG_FRAME_WARN=2048 produces:

drivers/media/dvb/frontends/dib7000p.c:1367: warning: the frame size of 2320 bytes is larger than 2048 bytes

and in 'make checkstack', the stack usage goes from:
0x00002409 dib7000p_i2c_enumeration [dib7000p]: 2328
to unlisted with this patch.

Also change one caller of dib7000p_i2c_enumeration() to check its
return value.

I don't have the hardware that is needed to test this patch.

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/cxusb.c
drivers/media/dvb/frontends/dib7000p.c