git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Staging: Drop memory allocation cast
[safe/jmp/linux-2.6]
/
drivers
/
staging
/
crystalhd
/
crystalhd_misc.c
diff --git
a/drivers/staging/crystalhd/crystalhd_misc.c
b/drivers/staging/crystalhd/crystalhd_misc.c
index
d134667
..
548dc09
100644
(file)
--- a/
drivers/staging/crystalhd/crystalhd_misc.c
+++ b/
drivers/staging/crystalhd/crystalhd_misc.c
@@
-887,7
+887,7
@@
int crystalhd_create_dio_pool(struct crystalhd_adp *adp, uint32_t max_pages)
BC_LINK_SG_POOL_SZ, max_pages, asz, adp->fill_byte_pool);
for (i = 0; i < BC_LINK_SG_POOL_SZ; i++) {
BC_LINK_SG_POOL_SZ, max_pages, asz, adp->fill_byte_pool);
for (i = 0; i < BC_LINK_SG_POOL_SZ; i++) {
- temp =
(uint8_t *)
kzalloc(asz, GFP_KERNEL);
+ temp = kzalloc(asz, GFP_KERNEL);
if ((temp) == NULL) {
BCMLOG_ERR("Failed to alloc %d mem\n", asz);
return -ENOMEM;
if ((temp) == NULL) {
BCMLOG_ERR("Failed to alloc %d mem\n", asz);
return -ENOMEM;