projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16704b1
)
net: typhoon: Remove redundant casts
author
Rasmus Villemoes
<
[email protected]
>
Tue, 21 Oct 2014 14:51:43 +0000
(16:51 +0200)
committer
David S. Miller
<
[email protected]
>
Fri, 24 Oct 2014 04:41:31 +0000
(
00:41
-0400)
Both image_data and typhoon_fw->data are const u8*, so the cast to u8*
is unnecessary and confusing.
Signed-off-by: Rasmus Villemoes <
[email protected]
>
Acked-by: David Dillow <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/3com/typhoon.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/3com/typhoon.c
b/drivers/net/ethernet/3com/typhoon.c
index 48775b88bac72a9de44342b4c43b04e33dead760..dede43f4ce095bbea6a85923891acae0e704563d 100644
(file)
--- a/
drivers/net/ethernet/3com/typhoon.c
+++ b/
drivers/net/ethernet/3com/typhoon.c
@@
-1285,7
+1285,7
@@
typhoon_request_firmware(struct typhoon *tp)
return err;
}
- image_data =
(u8 *)
typhoon_fw->data;
+ image_data = typhoon_fw->data;
remaining = typhoon_fw->size;
if (remaining < sizeof(struct typhoon_file_header))
goto invalid_fw;
@@
-1343,7
+1343,7
@@
typhoon_download_firmware(struct typhoon *tp)
int i;
int err;
- image_data =
(u8 *)
typhoon_fw->data;
+ image_data = typhoon_fw->data;
fHdr = (struct typhoon_file_header *) image_data;
/* Cannot just map the firmware image using pci_map_single() as