From 9004009bb3c8978d325b704806400556cfc5a290 Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Thu, 31 Dec 2020 15:36:56 -0700 Subject: [PATCH] nvnet: Always return value in nvnet_get_reg --- hw/xbox/nvnet.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/xbox/nvnet.c b/hw/xbox/nvnet.c index 824d114da7..7a246857d6 100644 --- a/hw/xbox/nvnet.c +++ b/hw/xbox/nvnet.c @@ -415,6 +415,7 @@ static uint32_t nvnet_get_reg(NvNetState *s, hwaddr addr, unsigned int size) default: assert(0); /* Unsupported register access. */ + return 0; } }