diff mbox series

vl: constify default_list

Message ID 20231030101529.105266-1-marcandre.lureau@redhat.com
State New
Headers show
Series vl: constify default_list | expand

Commit Message

Marc-André Lureau Oct. 30, 2023, 10:15 a.m. UTC
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(-)

Comments

Philippe Mathieu-Daudé Oct. 30, 2023, 10:19 a.m. UTC | #1
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>
Philippe Mathieu-Daudé Nov. 8, 2023, 10:42 a.m. UTC | #2
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 mbox series

Patch

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[] = {