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
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")];
...
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
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