提交 eb6df28e 编写于 作者: A Abhishek Sahu 提交者: Boris Brezillon

mtd: nand: qcom: remove memset for clearing read register buffer

The memset in clear_read_regs is overhead. All the register data
will be filled by DMA during NAND operation so making these
register variables zero is not required.
Signed-off-by: NAbhishek Sahu <absahu@codeaurora.org>
Reviewed-by: NArchit Taneja <architt@codeaurora.org>
Signed-off-by: NBoris Brezillon <boris.brezillon@free-electrons.com>
上级 77cc5364
......@@ -823,8 +823,6 @@ static void free_descs(struct qcom_nand_controller *nandc)
static void clear_read_regs(struct qcom_nand_controller *nandc)
{
nandc->reg_read_pos = 0;
memset(nandc->reg_read_buf, 0,
MAX_REG_RD * sizeof(*nandc->reg_read_buf));
}
static void pre_command(struct qcom_nand_host *host, int command)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册