aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorEli Cohen <eli@mellanox.co.il>2008-07-14 23:48:53 -0700
committerRoland Dreier <rolandd@cisco.com>2008-07-14 23:48:53 -0700
commitf507d28bff0601f1a8a96b7939fa3855c50d25b6 (patch)
treecc123185fdd19bac8c6309adeef0e39b47ef9b04 /block
parentmlx4_core: Use MOD_STAT_CFG command to get minimal page size (diff)
downloadlinux-dev-f507d28bff0601f1a8a96b7939fa3855c50d25b6.tar.xz
linux-dev-f507d28bff0601f1a8a96b7939fa3855c50d25b6.zip
IB/mlx4: Use kzalloc() for new QPs so flags are initialized to 0
Current code uses kmalloc() and then just does a bitwise OR operation on qp->flags in create_qp_common(), which means that qp->flags may potentially have some unintended bits set. This patch uses kzalloc() and avoids further explicit clearing of structure members, which also shrinks the code: add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-65 (-65) function old new delta create_qp_common 2024 1959 -65 Signed-off-by: Eli Cohen <eli@mellanox.co.il> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions