Message ID | 20231030101529.105266-1-marcandre.lureau@redhat.com |
---|---|
State | New |
Headers | show |
Series | vl: constify default_list | expand |
On 30/10/23 11:15, marcandre.lureau@redhat.com wrote: > From: Marc-André Lureau <marcandre.lureau@redhat.com> > > It's not modified, let's make it const. > > Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> > --- > system/vl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
On 30/10/23 11:19, Philippe Mathieu-Daudé wrote: > On 30/10/23 11:15, marcandre.lureau@redhat.com wrote: >> From: Marc-André Lureau <marcandre.lureau@redhat.com> >> >> It's not modified, let's make it const. >> >> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> >> --- >> system/vl.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) > > Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> ... and queued via my cpu/misc tree, thanks!
diff --git a/system/vl.c b/system/vl.c index 86dd2dce28..f42ccfa216 100644 --- a/system/vl.c +++ b/system/vl.c @@ -194,7 +194,7 @@ static int default_sdcard = 1; static int default_vga = 1; static int default_net = 1; -static struct { +static const struct { const char *driver; int *flag; } default_list[] = {