Commit 00fd5d94 authored by Rasmus Villemoes's avatar Rasmus Villemoes Committed by David S. Miller

net: typhoon: Remove redundant casts

Both image_data and typhoon_fw->data are const u8*, so the cast to u8*
is unnecessary and confusing.
Signed-off-by: default avatarRasmus Villemoes <linux@rasmusvillemoes.dk>
Acked-by: default avatarDavid Dillow <dave@thedillows.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 16704b12
...@@ -1285,7 +1285,7 @@ typhoon_request_firmware(struct typhoon *tp) ...@@ -1285,7 +1285,7 @@ typhoon_request_firmware(struct typhoon *tp)
return err; return err;
} }
image_data = (u8 *) typhoon_fw->data; image_data = typhoon_fw->data;
remaining = typhoon_fw->size; remaining = typhoon_fw->size;
if (remaining < sizeof(struct typhoon_file_header)) if (remaining < sizeof(struct typhoon_file_header))
goto invalid_fw; goto invalid_fw;
...@@ -1343,7 +1343,7 @@ typhoon_download_firmware(struct typhoon *tp) ...@@ -1343,7 +1343,7 @@ typhoon_download_firmware(struct typhoon *tp)
int i; int i;
int err; int err;
image_data = (u8 *) typhoon_fw->data; image_data = typhoon_fw->data;
fHdr = (struct typhoon_file_header *) image_data; fHdr = (struct typhoon_file_header *) image_data;
/* Cannot just map the firmware image using pci_map_single() as /* Cannot just map the firmware image using pci_map_single() as
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment