Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1739051pxf; Fri, 12 Mar 2021 18:43:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJxfgMtcylNXvGPZGm8qcAx95on1QpF6zCiG7X1zZ1A0ss2e23lSLULVmdiN68Alsss5LI2d X-Received: by 2002:a05:6402:181a:: with SMTP id g26mr17573158edy.225.1615603427589; Fri, 12 Mar 2021 18:43:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615603427; cv=none; d=google.com; s=arc-20160816; b=Dt92o9dF2lSHF8TOlMgQoRgMsTGV5zmtU6Bk30LsprohQUQYcHIbXU855/rngGzmda v9fJSXmXLpYC8KN2n7s2J30AMhaz1ptIKrQoSu4WtHu6anP2ibz9V25cv8n0eWw4oMdH qiPSpmBTYBnVgX4R3phbZ7S598UTLAzxv99+oTiuuiwoPMO5txQ7+Ni8aWNO49EJtuVN c819M4gYuesUqhNvwGXWTZ6+0+wTBVhZxX6oDahAJdN8YSmrSQClxF89KxVDJOgFW+Ty W9zrkhoXNRrh+gICENnyYpjQ3i73y+6rrJKZtzjszPTp5srRzmVbjOVKy9ZHum0Qz1xg UhDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=N/tmXNqHwtXYyOIcA/4mj5IW7YUVdgmjUZjRYw4RzaM=; b=NvHEkGAaVgcgeySemM37vqmrMin5ICpEdudbu2zptaeNTd9GV9XHWHqp/tCeWOBkXD IF3R7QX2CBujRRIC+2Sv6nRbNjPx7vRUDvJn8j8XkmG5CJIzsTdL7W+zYtDuHQTmlYdL xAYoHjlqepGxyUQ2bZsK/FprIba0WvSZq29BL4dE6+VGUAsvJoI4prghfk2jXDr9IT6m 5JbyM62ecK/kMzYXzhj/IbgNyYO8i6A+TGjcMyzWedbNUcDw9lHZzCibIqDZEvOZ9vy5 /2fHeW5eoDIGEK8tFJf8FxkiGcgwYEBtPyjayvLed1tH1x3FC4LJclktWgDPHwwg4jA2 MMFA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u5si4879992ejg.130.2021.03.12.18.43.25; Fri, 12 Mar 2021 18:43:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232627AbhCMCl7 (ORCPT + 99 others); Fri, 12 Mar 2021 21:41:59 -0500 Received: from mail-m17635.qiye.163.com ([59.111.176.35]:42884 "EHLO mail-m17635.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229968AbhCMClu (ORCPT ); Fri, 12 Mar 2021 21:41:50 -0500 Received: from vivo-HP-ProDesk-680-G4-PCI-MT.vivo.xyz (unknown [58.251.74.231]) by mail-m17635.qiye.163.com (Hmail) with ESMTPA id 03811400105; Sat, 13 Mar 2021 10:41:47 +0800 (CST) From: Wang Qing To: Pawel Laszczak , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Wang Qing Subject: [PATCH] usb: cdns3: delete repeated clear operations Date: Sat, 13 Mar 2021 10:41:43 +0800 Message-Id: <1615603303-14518-1-git-send-email-wangqing@vivo.com> X-Mailer: git-send-email 2.7.4 X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZTh4fGUxNHh5PSkkaVkpNSk5NS0hIS0NJTkNVEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS0hNSlVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Mxw6Ijo5OT8TKVE9KE4NKgMB LhcKChlVSlVKTUpOTUtISEtDTkNPVTMWGhIXVQwaFRwKEhUcOw0SDRRVGBQWRVlXWRILWUFZTkNV SU5KVUxPVUlISllXWQgBWUFKT0pKNwY+ X-HM-Tid: 0a7829761695d991kuws03811400105 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org dma_alloc_coherent already zeroes out memory, so memset is not needed. Signed-off-by: Wang Qing --- drivers/usb/cdns3/cdnsp-mem.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/cdns3/cdnsp-mem.c b/drivers/usb/cdns3/cdnsp-mem.c index 7a84e92..1d1b9a4 --- a/drivers/usb/cdns3/cdnsp-mem.c +++ b/drivers/usb/cdns3/cdnsp-mem.c @@ -1231,7 +1231,6 @@ int cdnsp_mem_init(struct cdnsp_device *pdev) if (!pdev->dcbaa) return -ENOMEM; - memset(pdev->dcbaa, 0, sizeof(*pdev->dcbaa)); pdev->dcbaa->dma = dma; cdnsp_write_64(dma, &pdev->op_regs->dcbaa_ptr); -- 2.7.4