Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp364893ybv; Tue, 4 Feb 2020 23:25:51 -0800 (PST) X-Google-Smtp-Source: APXvYqxNROva34fGRu8z4Et1SN94/9N3XJzjNln/6VzLfDE9z9/bzCwARmU8l+oCno1xVe94AfPz X-Received: by 2002:a9d:65cf:: with SMTP id z15mr25926816oth.238.1580887551505; Tue, 04 Feb 2020 23:25:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580887551; cv=none; d=google.com; s=arc-20160816; b=jNUr0Rk75qLQqRCjX2GPhThAI9sVqlVlg3iaCxis25xtowcyZdr6g8Ff0+s6opNZIu mwpvCzyckIFsjt7PHUv4fbzC2A3JAjiSxkGT9lcZOfcPblT3x7tTyeTFxQ+HKw6abT0V 0OOs5x7zSL/otpLdh23CRHAJvMnQpaRj26uPFr/gJkWnvVF/K+uAPZKb/2y83CSybzdh DAYBsKUCWbYjfGVrCtk0VQfFUzC+64hlOLjH+Qy1ytM1b1RwwNAgIUsnQEfKRbDa5xqL KIUbZr3axh4llyNs6b3TH88GeJuNC+JCyoOhLxnY3JY4oViu2hQ+GKFDFF2MA+ke79Ct xuoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=XidfWvJsrTxas9mmrX349tefVZ4d/T9FrLFx2ORStzU=; b=Ec1gDxTEZUCnibk5p2nMUsgxOTM5xSzZ3dgBhj//4Ln+cne/CVQJybgPl7vbBWeo13 CK+iCvjMlY0qPrieMoypvQFBQ0Jnppb+r+dv30dFe0o0Pqls7/v53DUmD2m5ILKthrnS e/o1NK1RrQb7iG3NIIiaDgsiQTFC5LTLuuPzy6uHgnPhCfOnGEkouvwANISsUUGJEt78 tntk5bcWU1AW/P1lV0Hc1hgvfauyitNhOd8jfk/UeJqN+RACWk6JYlxrBkl1yMBHG2XF XBzrzQQiZLX6VKKxjJbi/AY/9qyzDA0fm/ZSfSCNNk+P61Q8/l7xmhb/+3wOq7SyyFZN OvQQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t28si13359472otr.16.2020.02.04.23.25.27; Tue, 04 Feb 2020 23:25:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725793AbgBEHZ0 (ORCPT + 99 others); Wed, 5 Feb 2020 02:25:26 -0500 Received: from out30-56.freemail.mail.aliyun.com ([115.124.30.56]:48041 "EHLO out30-56.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725468AbgBEHZ0 (ORCPT ); Wed, 5 Feb 2020 02:25:26 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R601e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e07488;MF=tianjia.zhang@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0TpBaC5u_1580887523; Received: from localhost(mailfrom:tianjia.zhang@linux.alibaba.com fp:SMTPD_---0TpBaC5u_1580887523) by smtp.aliyun-inc.com(127.0.0.1); Wed, 05 Feb 2020 15:25:24 +0800 From: Tianjia Zhang To: herbert@gondor.apana.org.au, davem@davemloft.net Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] crypto: proc - simplify the c_show function Date: Wed, 5 Feb 2020 15:25:23 +0800 Message-Id: <20200205072523.40176-1-tianjia.zhang@linux.alibaba.com> X-Mailer: git-send-email 2.17.1 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org The path with the CRYPTO_ALG_LARVAL flag has jumped to the end before Signed-off-by: Tianjia Zhang --- crypto/proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/proc.c b/crypto/proc.c index 7b91557adccb..08d8c2bc7e62 100644 --- a/crypto/proc.c +++ b/crypto/proc.c @@ -60,7 +60,7 @@ static int c_show(struct seq_file *m, void *p) goto out; } - switch (alg->cra_flags & (CRYPTO_ALG_TYPE_MASK | CRYPTO_ALG_LARVAL)) { + switch (alg->cra_flags & CRYPTO_ALG_TYPE_MASK) { case CRYPTO_ALG_TYPE_CIPHER: seq_printf(m, "type : cipher\n"); seq_printf(m, "blocksize : %u\n", alg->cra_blocksize); -- 2.17.1