Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1883752pxk; Sun, 13 Sep 2020 20:56:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjXsP7XnLLge1qss4B0+36ybhP34bRDZFfXyxiwhlTEOFuNrmTFTAwlt4sv8F4kgr11Qwk X-Received: by 2002:a17:906:b756:: with SMTP id fx22mr12364763ejb.245.1600055792629; Sun, 13 Sep 2020 20:56:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600055792; cv=none; d=google.com; s=arc-20160816; b=eFAjxfqvRLdVpredcmu4ULjj1wS+mlCr3LoaRE+lrJysv2uJvlE9Hx00MQsNuHiRpy QtXe7GrjbNEv3f5NXEgcszyDkkpj4T6m4wx9c75UXxKYrLzsZwz7D2w401ymy0gbF47/ /vZdSe0qLSlu0i4Jt5mUGVnmvkMDfSmJhvYCjlKpKyYdqLX4dvv6GTDioFNo+Y5T2avl ZaysAgwS/QX6JsdfiTQWfgbR/tnBe+8EzEyqr4IPSX9tqSOxGO5pFes50zndGQMULlSP Vd+SdrYfWJxcJhtZw7mnEfC/OVvwneTqmzuhC2RpniVhjzfOPRPt0F4/sWlYPPt8VGpp kdiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=2K95z8lrdEGN+WIQyjXm8RczedVr6Q8UEoQSn2spztc=; b=M2fBUJefskM6B/0SHzNZElhECddHUTV7yzsxD2Wvqctrk2nR7qOyd4OwwSr9gaaq94 UaKpLRp4YLE2nM83JyZxdH32VI1WrCr6k5FluLUZPNulLplpb7GHKVY8NK4IztEKPe5E QoeWz8WFmlGNafMrcZA+8gBewjPtgfmwXTH+C3NR9X4RkpXhQfV5nSrVV4onoMQbAwaK pO2nnGybBDvkqL5LdIMPTz+0AyVNmI3r++EQCPaAu3VwJ2Jfi6sh7ZXpRbAKxwfvWLqV AsYDenAhlr+VkE4HCdVrL+X247UR0GkOV47dhIHj2YcFiF7sPpt03rAeGzp2P9+hBNvu lVpw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j19si6145315ejx.272.2020.09.13.20.55.56; Sun, 13 Sep 2020 20:56:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725965AbgINDzX (ORCPT + 99 others); Sun, 13 Sep 2020 23:55:23 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:45122 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726015AbgINDzV (ORCPT ); Sun, 13 Sep 2020 23:55:21 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 74C9DC398F6E1AE79224; Mon, 14 Sep 2020 11:55:17 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Mon, 14 Sep 2020 11:55:06 +0800 From: Liu Shixin To: "David S . Miller" , Herbert Xu , Nicolas Ferre CC: , , , Liu Shixin Subject: [PATCH -next] crypto: atmel-aes - convert to use be32_add_cpu() Date: Mon, 14 Sep 2020 12:17:46 +0800 Message-ID: <20200914041746.3701896-1-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.32] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Convert cpu_to_be32(be32_to_cpu(E1) + E2) to use be32_add_cpu(). Signed-off-by: Liu Shixin --- drivers/crypto/atmel-aes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/atmel-aes.c b/drivers/crypto/atmel-aes.c index a6e14491e080..b1d286004295 100644 --- a/drivers/crypto/atmel-aes.c +++ b/drivers/crypto/atmel-aes.c @@ -1539,7 +1539,7 @@ static int atmel_aes_gcm_length(struct atmel_aes_dev *dd) /* Write incr32(J0) into IV. */ j0_lsw = j0[3]; - j0[3] = cpu_to_be32(be32_to_cpu(j0[3]) + 1); + be32_add_cpu(&j0[3], 1); atmel_aes_write_block(dd, AES_IVR(0), j0); j0[3] = j0_lsw; -- 2.25.1