Remove unused variables

Change-Id: I13bc39829fa4e0ac56cf047de4bc0ddf357d6d73
diff --git a/libupgrade/hmx_upgrade_flash.c b/libupgrade/hmx_upgrade_flash.c
index 7db26be..772948c 100644
--- a/libupgrade/hmx_upgrade_flash.c
+++ b/libupgrade/hmx_upgrade_flash.c
@@ -106,9 +106,6 @@
 /* Start static variable */
 int fd_nvram = -1;
 
-static unsigned long    s_FlashTotalSize;
-static unsigned long    s_FlashBlockSize;
-static unsigned char *s_BlockBuff;
 /* End static variable */
 
 /*******************************************************************/
@@ -159,8 +156,6 @@
                            unsigned int size )
 {
   int ret;
-  unsigned long block_size, write_size;
-  unsigned long mov_offset, remain_size;
 
   if (libupgrade_verbose) printf("[%s] offset %08x, size %d, data = %02x\n",
                                  __FUNCTION__, offset, size, data[0] );
diff --git a/libupgrade/hmx_upgrade_nvram.c b/libupgrade/hmx_upgrade_nvram.c
index 2fe67b2..2c07b7a 100644
--- a/libupgrade/hmx_upgrade_nvram.c
+++ b/libupgrade/hmx_upgrade_nvram.c
@@ -792,7 +792,6 @@
   DRV_Error errCode = DRV_ERR;
   unsigned char szFileName[MAX_NVRAM_FILENAME_LENGTH];
   HMX_NVRAM_PARTITION_E partition;
-  int nvramHandle;
   unsigned int defaultSize;
 
   if (data == NULL || field == NVRAM_FIELD_DUMMY) {
@@ -856,7 +855,6 @@
   DRV_Error errCode = DRV_ERR;
   unsigned char szFileName[MAX_NVRAM_FILENAME_LENGTH];
   HMX_NVRAM_PARTITION_E partition;
-  int nvramHandle;
   unsigned int defaultSize;
   unsigned char *pBuf;
   unsigned int systemId;
@@ -945,9 +943,7 @@
   DRV_Error errCode = DRV_ERR;
   unsigned char szFileName[MAX_NVRAM_FILENAME_LENGTH];
   HMX_NVRAM_PARTITION_E partition;
-  int nvramHandle;
   unsigned int defaultSize;
-  unsigned char *pBuf;
 
   if (pLen == NULL) {
     return DRV_ERR_INVALID_PARAMETER;