diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2015-09-09 11:38:05 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-10 03:06:01 +0300 |
commit | 1f0ca208531a152e1da6aa43d095fe0b2039d9ca (patch) | |
tree | 46fce4b9df9e279f08ea3a5dfda07866d95ab660 /drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c | |
parent | b66a60857ca4fae5900c5d81c2ba04e657509b99 (diff) | |
download | linux-1f0ca208531a152e1da6aa43d095fe0b2039d9ca.tar.xz |
net: qlcnic: delete redundant memsets
In all cases, mbx->req.arg and mbx->rsp.arg have just been allocated
using kcalloc(), so these six memsets are redundant.
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c')
-rw-r--r-- | drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c index 546cd5f1c85a..7327b729ba2e 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c @@ -729,8 +729,6 @@ static int qlcnic_sriov_alloc_bc_mbx_args(struct qlcnic_cmd_args *mbx, u32 type) mbx->req.arg = NULL; return -ENOMEM; } - memset(mbx->req.arg, 0, sizeof(u32) * mbx->req.num); - memset(mbx->rsp.arg, 0, sizeof(u32) * mbx->rsp.num); mbx->req.arg[0] = (type | (mbx->req.num << 16) | (3 << 29)); mbx->rsp.arg[0] = (type & 0xffff) | mbx->rsp.num << 16; |