Commit eb6df28e authored by Abhishek Sahu's avatar Abhishek Sahu Committed by 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: default avatarAbhishek Sahu <absahu@codeaurora.org>
Reviewed-by: default avatarArchit Taneja <architt@codeaurora.org>
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
parent 77cc5364
...@@ -823,8 +823,6 @@ static void free_descs(struct qcom_nand_controller *nandc) ...@@ -823,8 +823,6 @@ static void free_descs(struct qcom_nand_controller *nandc)
static void clear_read_regs(struct qcom_nand_controller *nandc) static void clear_read_regs(struct qcom_nand_controller *nandc)
{ {
nandc->reg_read_pos = 0; 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) static void pre_command(struct qcom_nand_host *host, int command)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment