From 15d8e217a76fd12b9d5d18ad9b21b439b7eda419 Mon Sep 17 00:00:00 2001 From: Andreas 'phix' Jonsson Date: Fri, 10 Nov 2023 17:33:35 +0100 Subject: [PATCH] Fixed build issue --- modules/chipset/pcxt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/chipset/pcxt.c b/modules/chipset/pcxt.c index bd36b278..0cbe7730 100644 --- a/modules/chipset/pcxt.c +++ b/modules/chipset/pcxt.c @@ -66,9 +66,9 @@ static vxt_error ppi_config(void *dev, const char *section, const char *key, con static struct vxt_pirepheral *ppi_create(vxt_allocator *alloc, void *frontend, const char *args) { (void)args; + struct vxt_pirepheral *p = vxtu_ppi_create(alloc); - if (!p) - return NULL; + if (!p) return NULL; if (frontend) { struct frontend_interface *fi = (struct frontend_interface*)frontend;