Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes
This commit is contained in:
committed by
Øyvind Harboe
parent
ae02a0e517
commit
f6315d5e5b
@@ -175,7 +175,6 @@ static int virtex2_load(struct pld_device *pld_device, const char *filename)
|
||||
COMMAND_HANDLER(virtex2_handle_read_stat_command)
|
||||
{
|
||||
struct pld_device *device;
|
||||
struct virtex2_pld_device *virtex2_info;
|
||||
uint32_t status;
|
||||
|
||||
if (CMD_ARGC < 1)
|
||||
@@ -193,8 +192,6 @@ COMMAND_HANDLER(virtex2_handle_read_stat_command)
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
virtex2_info = device->driver_priv;
|
||||
|
||||
virtex2_read_stat(device, &status);
|
||||
|
||||
command_print(CMD_CTX, "virtex2 status register: 0x%8.8" PRIx32 "", status);
|
||||
|
||||
Reference in New Issue
Block a user