aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/igb/e1000_82575.c
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2009-10-05 02:31:25 -0400
committerDavid S. Miller <davem@davemloft.net>2009-10-06 17:59:16 -0400
commitcc9073bbc901a0b695c9c5966d65520c29af70af (patch)
tree96af91fe9ed8c7ad3c3b6e1ff51b314aeb93d6b7 /drivers/net/igb/e1000_82575.c
parentd519e17e2d01a0ee9abe083019532061b4438065 (diff)
igb: remove unused temp variable from stats clearing path
There is a temp variable in the stats clearing path that isn't needed since the results from the stats read can be immediately discared. Since it isn't needed we might as well just drop it from the function call. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/igb/e1000_82575.c')
-rw-r--r--drivers/net/igb/e1000_82575.c96
1 files changed, 47 insertions, 49 deletions
diff --git a/drivers/net/igb/e1000_82575.c b/drivers/net/igb/e1000_82575.c
index f8f5772557ce..b60daf43cf27 100644
--- a/drivers/net/igb/e1000_82575.c
+++ b/drivers/net/igb/e1000_82575.c
@@ -1181,61 +1181,59 @@ static s32 igb_read_mac_addr_82575(struct e1000_hw *hw)
1181 **/ 1181 **/
1182static void igb_clear_hw_cntrs_82575(struct e1000_hw *hw) 1182static void igb_clear_hw_cntrs_82575(struct e1000_hw *hw)
1183{ 1183{
1184 u32 temp;
1185
1186 igb_clear_hw_cntrs_base(hw); 1184 igb_clear_hw_cntrs_base(hw);
1187 1185
1188 temp = rd32(E1000_PRC64); 1186 rd32(E1000_PRC64);
1189 temp = rd32(E1000_PRC127); 1187 rd32(E1000_PRC127);
1190 temp = rd32(E1000_PRC255); 1188 rd32(E1000_PRC255);
1191 temp = rd32(E1000_PRC511); 1189 rd32(E1000_PRC511);
1192 temp = rd32(E1000_PRC1023); 1190 rd32(E1000_PRC1023);
1193 temp = rd32(E1000_PRC1522); 1191 rd32(E1000_PRC1522);
1194 temp = rd32(E1000_PTC64); 1192 rd32(E1000_PTC64);
1195 temp = rd32(E1000_PTC127); 1193 rd32(E1000_PTC127);
1196 temp = rd32(E1000_PTC255); 1194 rd32(E1000_PTC255);
1197 temp = rd32(E1000_PTC511); 1195 rd32(E1000_PTC511);
1198 temp = rd32(E1000_PTC1023); 1196 rd32(E1000_PTC1023);
1199 temp = rd32(E1000_PTC1522); 1197 rd32(E1000_PTC1522);
1200 1198
1201 temp = rd32(E1000_ALGNERRC); 1199 rd32(E1000_ALGNERRC);
1202 temp = rd32(E1000_RXERRC); 1200 rd32(E1000_RXERRC);
1203 temp = rd32(E1000_TNCRS); 1201 rd32(E1000_TNCRS);
1204 temp = rd32(E1000_CEXTERR); 1202 rd32(E1000_CEXTERR);
1205 temp = rd32(E1000_TSCTC); 1203 rd32(E1000_TSCTC);
1206 temp = rd32(E1000_TSCTFC); 1204 rd32(E1000_TSCTFC);
1207 1205
1208 temp = rd32(E1000_MGTPRC); 1206 rd32(E1000_MGTPRC);
1209 temp = rd32(E1000_MGTPDC); 1207 rd32(E1000_MGTPDC);
1210 temp = rd32(E1000_MGTPTC); 1208 rd32(E1000_MGTPTC);
1211 1209
1212 temp = rd32(E1000_IAC); 1210 rd32(E1000_IAC);
1213 temp = rd32(E1000_ICRXOC); 1211 rd32(E1000_ICRXOC);
1214 1212
1215 temp = rd32(E1000_ICRXPTC); 1213 rd32(E1000_ICRXPTC);
1216 temp = rd32(E1000_ICRXATC); 1214 rd32(E1000_ICRXATC);
1217 temp = rd32(E1000_ICTXPTC); 1215 rd32(E1000_ICTXPTC);
1218 temp = rd32(E1000_ICTXATC); 1216 rd32(E1000_ICTXATC);
1219 temp = rd32(E1000_ICTXQEC); 1217 rd32(E1000_ICTXQEC);
1220 temp = rd32(E1000_ICTXQMTC); 1218 rd32(E1000_ICTXQMTC);
1221 temp = rd32(E1000_ICRXDMTC); 1219 rd32(E1000_ICRXDMTC);
1222 1220
1223 temp = rd32(E1000_CBTMPC); 1221 rd32(E1000_CBTMPC);
1224 temp = rd32(E1000_HTDPMC); 1222 rd32(E1000_HTDPMC);
1225 temp = rd32(E1000_CBRMPC); 1223 rd32(E1000_CBRMPC);
1226 temp = rd32(E1000_RPTHC); 1224 rd32(E1000_RPTHC);
1227 temp = rd32(E1000_HGPTC); 1225 rd32(E1000_HGPTC);
1228 temp = rd32(E1000_HTCBDPC); 1226 rd32(E1000_HTCBDPC);
1229 temp = rd32(E1000_HGORCL); 1227 rd32(E1000_HGORCL);
1230 temp = rd32(E1000_HGORCH); 1228 rd32(E1000_HGORCH);
1231 temp = rd32(E1000_HGOTCL); 1229 rd32(E1000_HGOTCL);
1232 temp = rd32(E1000_HGOTCH); 1230 rd32(E1000_HGOTCH);
1233 temp = rd32(E1000_LENERRS); 1231 rd32(E1000_LENERRS);
1234 1232
1235 /* This register should not be read in copper configurations */ 1233 /* This register should not be read in copper configurations */
1236 if (hw->phy.media_type == e1000_media_type_internal_serdes || 1234 if (hw->phy.media_type == e1000_media_type_internal_serdes ||
1237 igb_sgmii_active_82575(hw)) 1235 igb_sgmii_active_82575(hw))
1238 temp = rd32(E1000_SCVPC); 1236 rd32(E1000_SCVPC);
1239} 1237}
1240 1238
1241/** 1239/**