projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
iavf: Use kzalloc for allocating only one thing
[linux-2.6-microblaze.git]
/
drivers
/
net
/
ethernet
/
intel
/
iavf
/
iavf_virtchnl.c
diff --git
a/drivers/net/ethernet/intel/iavf/iavf_virtchnl.c
b/drivers/net/ethernet/intel/iavf/iavf_virtchnl.c
index
ed08ace
..
647e7fd
100644
(file)
--- a/
drivers/net/ethernet/intel/iavf/iavf_virtchnl.c
+++ b/
drivers/net/ethernet/intel/iavf/iavf_virtchnl.c
@@
-911,7
+911,7
@@
static void iavf_print_link_message(struct iavf_adapter *adapter)
return;
}
- speed = k
calloc(1,
IAVF_MAX_SPEED_STRLEN, GFP_KERNEL);
+ speed = k
zalloc(
IAVF_MAX_SPEED_STRLEN, GFP_KERNEL);
if (!speed)
return;