mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-04 01:03:45 +09:00
board/freescale/common/cds_pci_ft.c: Fix GCC 4.6 build warning
Fix: cds_pci_ft.c: In function 'cds_pci_fixup': cds_pci_ft.c:31:12: warning: variable 'tmp' set but not used [-Wunused-but-set-variable] Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
parent
e55d637a5f
commit
67926c2a1d
@ -28,13 +28,12 @@
|
|||||||
#if defined(CONFIG_OF_BOARD_SETUP)
|
#if defined(CONFIG_OF_BOARD_SETUP)
|
||||||
static void cds_pci_fixup(void *blob)
|
static void cds_pci_fixup(void *blob)
|
||||||
{
|
{
|
||||||
int node, tmp[2];
|
int node;
|
||||||
const char *path;
|
const char *path;
|
||||||
int len, slot, i;
|
int len, slot, i;
|
||||||
u32 *map = NULL;
|
u32 *map = NULL;
|
||||||
|
|
||||||
node = fdt_path_offset(blob, "/aliases");
|
node = fdt_path_offset(blob, "/aliases");
|
||||||
tmp[0] = 0;
|
|
||||||
if (node >= 0) {
|
if (node >= 0) {
|
||||||
path = fdt_getprop(blob, node, "pci0", NULL);
|
path = fdt_getprop(blob, node, "pci0", NULL);
|
||||||
if (path) {
|
if (path) {
|
||||||
|
Loading…
Reference in New Issue
Block a user