From 94e79aa8d0007b78aecfa6d330ef04e0696c1435 Mon Sep 17 00:00:00 2001 From: fly1ngpengu1ns Date: Tue, 4 Apr 2023 03:18:21 +0000 Subject: [PATCH] Three unused variables were removed Signed-off-by: fly1ngpengu1ns --- model/usb/host/src/usb_pnp_notify.c | 1 - platform/gpio/gpio_adapter.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/model/usb/host/src/usb_pnp_notify.c b/model/usb/host/src/usb_pnp_notify.c index c857b91..941d34c 100644 --- a/model/usb/host/src/usb_pnp_notify.c +++ b/model/usb/host/src/usb_pnp_notify.c @@ -55,7 +55,6 @@ static struct UsbPnpDeviceInfo *UsbPnpNotifyCreateInfo(void) { struct UsbPnpDeviceInfo *infoTemp = NULL; static int32_t idNum = 1; - int32_t ret; infoTemp = (struct UsbPnpDeviceInfo *)OsalMemCalloc(sizeof(struct UsbPnpDeviceInfo)); if (infoTemp == NULL) { diff --git a/platform/gpio/gpio_adapter.c b/platform/gpio/gpio_adapter.c index 37a44a5..6bc5440 100644 --- a/platform/gpio/gpio_adapter.c +++ b/platform/gpio/gpio_adapter.c @@ -279,9 +279,7 @@ static int32_t LinuxGpioInit(struct HdfDeviceObject *device) static int LinuxGpioMatchRelease(struct gpio_chip *chip, void *data) { - int32_t ret; struct GpioCntlr *cntlr = NULL; - struct PlatformManager *manager = GpioManagerGet(); if (chip == NULL) { return 0; -- Gitee