Browse Source

[etherfabric] Avoid unused variable warning in gcc 4.6

Reported-by: Ralph Giles <giles@thaumas.net>
Tested-by: Ralph Giles <giles@thaumas.net>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 13 years ago
parent
commit
9e308d922d
1 changed files with 1 additions and 6 deletions
  1. 1
    6
      src/drivers/net/etherfabric.c

+ 1
- 6
src/drivers/net/etherfabric.c View File

3073
 clear_b0_fpga_memories ( struct efab_nic *efab)
3073
 clear_b0_fpga_memories ( struct efab_nic *efab)
3074
 {
3074
 {
3075
 	efab_oword_t blanko, temp;
3075
 	efab_oword_t blanko, temp;
3076
-	efab_dword_t blankd;
3077
 	int offset; 
3076
 	int offset; 
3078
 
3077
 
3079
 	EFAB_ZERO_OWORD ( blanko );
3078
 	EFAB_ZERO_OWORD ( blanko );
3080
-	EFAB_ZERO_DWORD ( blankd );
3081
 
3079
 
3082
 	/* Clear the address region register */
3080
 	/* Clear the address region register */
3083
 	EFAB_POPULATE_OWORD_4 ( temp,
3081
 	EFAB_POPULATE_OWORD_4 ( temp,
3175
 falcon_probe_nic_variant ( struct efab_nic *efab, struct pci_device *pci )
3173
 falcon_probe_nic_variant ( struct efab_nic *efab, struct pci_device *pci )
3176
 {
3174
 {
3177
 	efab_oword_t altera_build, nic_stat;
3175
 	efab_oword_t altera_build, nic_stat;
3178
-	int is_pcie, fpga_version;
3176
+	int fpga_version;
3179
 	uint8_t revision;
3177
 	uint8_t revision;
3180
 
3178
 
3181
 	/* PCI revision */
3179
 	/* PCI revision */
3190
 	/* MAC and PCI type */
3188
 	/* MAC and PCI type */
3191
 	falcon_read ( efab, &nic_stat, FCN_NIC_STAT_REG );
3189
 	falcon_read ( efab, &nic_stat, FCN_NIC_STAT_REG );
3192
 	if ( efab->pci_revision == FALCON_REV_B0 ) {
3190
 	if ( efab->pci_revision == FALCON_REV_B0 ) {
3193
-		is_pcie = 1;
3194
 		efab->phy_10g = EFAB_OWORD_FIELD ( nic_stat, FCN_STRAP_10G );
3191
 		efab->phy_10g = EFAB_OWORD_FIELD ( nic_stat, FCN_STRAP_10G );
3195
 	}
3192
 	}
3196
 	else if ( efab->is_asic ) {
3193
 	else if ( efab->is_asic ) {
3197
-		is_pcie = EFAB_OWORD_FIELD ( nic_stat, FCN_STRAP_PCIE );
3198
 		efab->phy_10g = EFAB_OWORD_FIELD ( nic_stat, FCN_STRAP_10G );
3194
 		efab->phy_10g = EFAB_OWORD_FIELD ( nic_stat, FCN_STRAP_10G );
3199
 	}
3195
 	}
3200
 	else {
3196
 	else {
3201
 		int minor = EFAB_OWORD_FIELD ( altera_build,  FCN_VER_MINOR );
3197
 		int minor = EFAB_OWORD_FIELD ( altera_build,  FCN_VER_MINOR );
3202
-		is_pcie = 0;
3203
 		efab->phy_10g = ( minor == 0x14 );
3198
 		efab->phy_10g = ( minor == 0x14 );
3204
 	}
3199
 	}
3205
 }
3200
 }

Loading…
Cancel
Save