mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
common: tsi148 - fix gcc 4.6 compiler warning
Configuring for vme8349 board... cmd_tsi148.c: In function 'tsi148_init': cmd_tsi148.c:56:17: warning: variable 'lastError' set but not used [-Wunused-but-set-variable] Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
This commit is contained in:
parent
67eee06cf1
commit
e1a37f8599
1 changed files with 2 additions and 5 deletions
|
@ -53,7 +53,7 @@ static TSI148_DEV *dev;
|
|||
|
||||
int tsi148_init(void)
|
||||
{
|
||||
int j, result, lastError = 0;
|
||||
int j, result;
|
||||
pci_dev_t busdevfn;
|
||||
unsigned int val;
|
||||
|
||||
|
@ -69,8 +69,7 @@ int tsi148_init(void)
|
|||
dev = malloc(sizeof(*dev));
|
||||
if (NULL == dev) {
|
||||
puts("Tsi148: No memory!\n");
|
||||
result = -1;
|
||||
goto break_20;
|
||||
return -1;
|
||||
}
|
||||
|
||||
memset(dev, 0, sizeof(*dev));
|
||||
|
@ -139,8 +138,6 @@ int tsi148_init(void)
|
|||
break_30:
|
||||
free(dev);
|
||||
dev = NULL;
|
||||
break_20:
|
||||
lastError = result;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue