[Mjpeg-users] [PATCH 07/25] drivers/media/video/zoran: Don't use initialized char array

2010-09-15 Thread Joe Perches
Just fill the array as necessary and terminate with 0 Signed-off-by: Joe Perches --- diff --git a/drivers/media/video/zoran/zoran_device.c b/drivers/media/video/zoran/zoran_device.c index 6f846ab..b02007e 100644 --- a/drivers/media/video/zoran/zoran_device.c +++ b/drivers/media/video/zoran/zoran

[Mjpeg-users] [PATCH 00/25] treewide-next: Use static const char arrays

2010-09-15 Thread Joe Perches
Using static const char foo[] = "bar" can save some code and text space, so change the places where it's possible. Also change the places that use char foo[] = "barX"; ... foo[3] = value + '0'; where X is typically changed char foo[sizeof("barX")]; ...

Re: [Mjpeg-users] [PATCH 07/25] drivers/media: Use static const char arrays

2010-09-15 Thread Mauro Carvalho Chehab
Em 13-09-2010 16:47, Joe Perches escreveu: > Signed-off-by: Joe Perches > --- > drivers/media/video/zoran/zoran_device.c |5 ++--- > 1 files changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/media/video/zoran/zoran_device.c > b/drivers/media/video/zoran/zoran_device.c > inde

[Mjpeg-users] [PATCH 07/25] drivers/media: Use static const char arrays

2010-09-15 Thread Joe Perches
Signed-off-by: Joe Perches --- drivers/media/video/zoran/zoran_device.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/video/zoran/zoran_device.c b/drivers/media/video/zoran/zoran_device.c index 6f846ab..ea8a1e9 100644 --- a/drivers/media/video/zoran/z