diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2015-09-09 10:38:05 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-09 17:06:01 -0700 |
commit | 1f0ca208531a152e1da6aa43d095fe0b2039d9ca (patch) | |
tree | 46fce4b9df9e279f08ea3a5dfda07866d95ab660 /drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c | |
parent | b66a60857ca4fae5900c5d81c2ba04e657509b99 (diff) | |
download | linux-1f0ca208531a152e1da6aa43d095fe0b2039d9ca.tar.bz2 |
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_83xx_hw.c')
-rw-r--r-- | drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c index 5ab3adf88166..9f0bdd993955 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c @@ -918,8 +918,6 @@ int qlcnic_83xx_alloc_mbx_args(struct qlcnic_cmd_args *mbx, 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); temp = adapter->ahw->fw_hal_version << 29; mbx->req.arg[0] = (type | (mbx->req.num << 16) | temp); mbx->cmd_op = type; |