diff options
author | Abhishek Sahu <absahu@codeaurora.org> | 2017-07-19 17:17:57 +0530 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-08-23 16:49:17 +0200 |
commit | eb6df28ef63d0ac9d8bb86483d8840fa95da4a8b (patch) | |
tree | 27bb01eb66358447d8b963ddad2b6a9fd153fde6 | |
parent | 77cc5364770387380dd5353625986576209de21c (diff) | |
download | linux-stable-eb6df28ef63d0ac9d8bb86483d8840fa95da4a8b.tar.gz linux-stable-eb6df28ef63d0ac9d8bb86483d8840fa95da4a8b.tar.bz2 linux-stable-eb6df28ef63d0ac9d8bb86483d8840fa95da4a8b.zip |
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: Abhishek Sahu <absahu@codeaurora.org>
Reviewed-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
-rw-r--r-- | drivers/mtd/nand/qcom_nandc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mtd/nand/qcom_nandc.c b/drivers/mtd/nand/qcom_nandc.c index 52c0287730e8..02be4ac0f101 100644 --- a/drivers/mtd/nand/qcom_nandc.c +++ b/drivers/mtd/nand/qcom_nandc.c @@ -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) |