diff --git a/model/usb/host/src/usb_pnp_notify.c b/model/usb/host/src/usb_pnp_notify.c index c857b91bd662fedb4579f27f6aa6a8d04f39ea84..941d34ca082e9b2e2e946b3f585706fa6e1bad98 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 37a44a5b8459da788146a5bbfa6416b5be22de05..6bc544044fad10c27d3b5f37209663743d8b7b32 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;