From patchwork Wed May 11 09:24:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: zengzhaoxiu@163.com X-Patchwork-Id: 9066551 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 393AABF29F for ; Wed, 11 May 2016 09:26:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6A7182015A for ; Wed, 11 May 2016 09:26:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 92CE520154 for ; Wed, 11 May 2016 09:26:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751775AbcEKJZJ (ORCPT ); Wed, 11 May 2016 05:25:09 -0400 Received: from m50-138.163.com ([123.125.50.138]:49413 "EHLO m50-138.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751393AbcEKJZG (ORCPT ); Wed, 11 May 2016 05:25:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=F63wqPvTbavaowdZIh DFcz75h4Wb1nvrGpLQQip0MOI=; b=eE+ziKOvq8M3MQqxm6E6GQHwclHTSUrd2S SLaCwPq20fsXPokuWknh0eLJjvK7GhKl5/7OBCqtVXY+tNi2WelquyOINyzglrIR +KZf/ntctkk1rF77rpBA6faJIikarCx3RnVCSoG/cpgiqO6GVCxvuvs7BQvWiI9x GNbBaiXuw= Received: from zhaoxiuzeng-VirtualBox.spreadtrum.com (unknown [112.95.225.98]) by smtp1 (Coremail) with SMTP id C9GowAC3g7xe+jJXBQx3AA--.1706S2; Wed, 11 May 2016 17:24:50 +0800 (CST) From: zengzhaoxiu@163.com To: linux-kernel@vger.kernel.org Cc: Zhaoxiu Zeng , Herbert Xu , "David S. Miller" , linux-crypto@vger.kernel.org Subject: [patch V4 30/31] crypto: use parity_long is sahara.c Date: Wed, 11 May 2016 17:24:43 +0800 Message-Id: <1462958683-26142-1-git-send-email-zengzhaoxiu@163.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1462955158-28394-1-git-send-email-zengzhaoxiu@163.com> References: <1462955158-28394-1-git-send-email-zengzhaoxiu@163.com> X-CM-TRANSID: C9GowAC3g7xe+jJXBQx3AA--.1706S2 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxUffOzUUUUU X-Originating-IP: [112.95.225.98] X-CM-SenderInfo: p2hqw6xkdr5xrx6rljoofrz/1tbiowJmgFUL6K9pUwAAsk Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Zhaoxiu Zeng Signed-off-by: Zhaoxiu Zeng --- drivers/crypto/sahara.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/sahara.c b/drivers/crypto/sahara.c index c3f3d89..5c44a15 100644 --- a/drivers/crypto/sahara.c +++ b/drivers/crypto/sahara.c @@ -783,7 +783,7 @@ static u32 sahara_sha_init_hdr(struct sahara_dev *dev, if (rctx->last) hdr |= SAHARA_HDR_MDHA_PDATA; - if (hweight_long(hdr) % 2 == 0) + if (!parity_long(hdr)) hdr |= SAHARA_HDR_PARITY_BIT; return hdr;