aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/ethernet/3com/typhoon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/3com/typhoon.c b/drivers/net/ethernet/3com/typhoon.c
index 48775b88bac7..dede43f4ce09 100644
--- a/drivers/net/ethernet/3com/typhoon.c
+++ b/drivers/net/ethernet/3com/typhoon.c
@@ -1285,7 +1285,7 @@ typhoon_request_firmware(struct typhoon *tp)
1285 return err; 1285 return err;
1286 } 1286 }
1287 1287
1288 image_data = (u8 *) typhoon_fw->data; 1288 image_data = typhoon_fw->data;
1289 remaining = typhoon_fw->size; 1289 remaining = typhoon_fw->size;
1290 if (remaining < sizeof(struct typhoon_file_header)) 1290 if (remaining < sizeof(struct typhoon_file_header))
1291 goto invalid_fw; 1291 goto invalid_fw;
@@ -1343,7 +1343,7 @@ typhoon_download_firmware(struct typhoon *tp)
1343 int i; 1343 int i;
1344 int err; 1344 int err;
1345 1345
1346 image_data = (u8 *) typhoon_fw->data; 1346 image_data = typhoon_fw->data;
1347 fHdr = (struct typhoon_file_header *) image_data; 1347 fHdr = (struct typhoon_file_header *) image_data;
1348 1348
1349 /* Cannot just map the firmware image using pci_map_single() as 1349 /* Cannot just map the firmware image using pci_map_single() as