Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp601015img; Wed, 20 Mar 2019 07:11:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxfxYKs2tagdbggaaFap5yBE1LoEIRoIZejCx1j+dPIAZ0AAm6EClCYWiZoUzifTDxIdbW X-Received: by 2002:a63:42c4:: with SMTP id p187mr7223665pga.219.1553091090660; Wed, 20 Mar 2019 07:11:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553091090; cv=none; d=google.com; s=arc-20160816; b=Xwp1zZLNF9KlRpGO6GZqFZvLJV5/O1nj9pDLGVIsxlLfm6tsYZtb0asNgJ3nIbTQjG sIqCUguy5ZHqbFIfVgcUyul6xixkPnUhNRnNzYZyBhY2cD4sgN20bNjn1q3YgxaT07dA c3PqtPYvfKZkjSIRsmmP5p33qvJ87vRB17pF+4U9zeKBe1T9vTa4iBuR5OVF6oDqiEOE O17mCGo0dphgmj8W4MlSiSVGf9bRL+Ct/868xhCM24Xja8yHBJKWHj3VGKlLGv6KG63f dqxnQobbUmFpIOJGNRPI4HGpMCy3SavLz+nsAQOdOi4igZyxaX53r+iBZ6EeYohawrzW P2Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=R0AZGddBQ6Jf/TcPj3xic4Oaagg9hE+HJuoOwIG5rwY=; b=c00P04NcK/Bwq+YT+bHwljyTgvYXBcRVOOFFGRHcqZ28a4KnoYSPQJtYztIz+it0gu W9/7z3jyw71ozC19V+I5rpQBzSP/8xmI6iqAHTREN0XnWRLUhA2ROVDKu4Et7u1g45bF /LJVggauPHnJJyxUpw5N0RZE3qIA8dRtBjr2g6BG98Rw6plKNTLnvjoPFM7hQq04zOj/ 0vG/mbBOoJg4xXO++Nyp9kPXYp9FZlZ6MYkSPmx8kuk7olQG1M88+/FMNZM+zjcvRnBv 8U9VvXKBL91cXpcMjYjRR1amrTyEdsqWYGUBDrj8bVsNYd5rNekU7Ks5eSOuwrdEMQqZ TEww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g1si1705974pgd.495.2019.03.20.07.11.14; Wed, 20 Mar 2019 07:11:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726647AbfCTOK0 (ORCPT + 99 others); Wed, 20 Mar 2019 10:10:26 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:5716 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725966AbfCTOK0 (ORCPT ); Wed, 20 Mar 2019 10:10:26 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 5ECB182E29FF4D44CE6E; Wed, 20 Mar 2019 22:10:24 +0800 (CST) Received: from localhost (10.177.31.96) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.408.0; Wed, 20 Mar 2019 22:10:00 +0800 From: Yue Haibing To: , , CC: , , YueHaibing Subject: [PATCH -next] ubifs: remove unused function __ubifs_shash_final Date: Wed, 20 Mar 2019 22:09:55 +0800 Message-ID: <20190320140955.11576-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.177.31.96] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YueHaibing There is no callers in tree, and can be removed. Signed-off-by: YueHaibing --- fs/ubifs/auth.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/fs/ubifs/auth.c b/fs/ubifs/auth.c index 5bf5fd0..2a40ccce 100644 --- a/fs/ubifs/auth.c +++ b/fs/ubifs/auth.c @@ -147,24 +147,6 @@ struct shash_desc *__ubifs_hash_get_desc(const struct ubifs_info *c) } /** - * __ubifs_shash_final - finalize shash - * @c: UBIFS file-system description object - * @desc: the descriptor - * @out: the output hash - * - * Simple wrapper around crypto_shash_final(), safe to be called with - * disabled authentication. - */ -int __ubifs_shash_final(const struct ubifs_info *c, struct shash_desc *desc, - u8 *out) -{ - if (ubifs_authenticated(c)) - return crypto_shash_final(desc, out); - - return 0; -} - -/** * ubifs_bad_hash - Report hash mismatches * @c: UBIFS file-system description object * @node: the node -- 2.7.0