From patchwork Mon Jul 23 17:04:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Biggers X-Patchwork-Id: 10540627 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0E34D112B for ; Mon, 23 Jul 2018 17:04:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E93A128CC0 for ; Mon, 23 Jul 2018 17:04:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB71A28CC5; Mon, 23 Jul 2018 17:04:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 93F2728CC0 for ; Mon, 23 Jul 2018 17:04:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388552AbeGWSGs (ORCPT ); Mon, 23 Jul 2018 14:06:48 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:34291 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388362AbeGWSGr (ORCPT ); Mon, 23 Jul 2018 14:06:47 -0400 Received: by mail-pf1-f194.google.com with SMTP id k19-v6so214400pfi.1 for ; Mon, 23 Jul 2018 10:04:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=GLCQRVrHp9SVbDd1b598XwNdYzc0c8cCtZBsX8oI6aQ=; b=gQvlMCOERv/miw7D88KX4ZqFQj42SNGkg62hpNWRn8ChZMLqy2n/k2bBASjtnQwQbz iWc/nvlVyfhuO5AUnxJBHTriSq1eilYtAs4RfGDcHarvKCQyg2VbkmK09iheb+4oax85 eSLK+vhh4g9sIvt+Rm6sLLXoibnqlcCBDEwYa06Hy0IAPd5qxgLfSZopPGWPIHLAKPxY G0CRmlAckjhwHbQjHhjwgnv3HeWDKYJByATGHgIhayaU8Pu5tyItPCxzPhiso4v3kaN0 iPCo7sK+EtTp4yDUeesXi3Zs9qS0rD+KMud1z0JWX+RpZkqT9h/PIfu28Oy9ADG9GlJc CZLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=GLCQRVrHp9SVbDd1b598XwNdYzc0c8cCtZBsX8oI6aQ=; b=WvO4qtbWGO57RcYGyq13kw9kp3o7QAORNlt3DPyV88VAP3ifms1G2D8sxao9DJdxVN rR76V7SDgBXCkUMGkx4gQOYB9VPWhN/wgAS6fDGYCgFFubfi08wmewtkIjpReOPzunrS uEUuDYDBxnxGvavf2LjhCMQdMgfFnNpwXUh1fpQe+cR02R8+rr1pu+ARulrqozi0DTeU sV+xz06mTIEhzuec8spfUPStW9KqCEtwDNgQH5FUr/Og0hbBnYXi8GPw01j/2DWOJf9D Ts/r/1LWqyTIjvL9y3ZBDUHE13LrmovsvUcUvl06hxzPJFs+Tc4JcasrgLhm11j6jnKd l0Nw== X-Gm-Message-State: AOUpUlGyxGUBzFKkzA7DMIbCucdKQKF+4SHfvA1m/7MYFi9aSSjaBzpO MpY0Kx+T2JpdDcSbMlmOJVqXKh45 X-Google-Smtp-Source: AAOMgpfQXSBOEWFG80OfAzZWkTrjkPGbjuH/x4y2gpDkubtAMeBtUVik/W1neeQT04OHVVBopSyBWw== X-Received: by 2002:a65:594b:: with SMTP id g11-v6mr13191356pgu.260.1532365478959; Mon, 23 Jul 2018 10:04:38 -0700 (PDT) Received: from ebiggers-linuxstation.kir.corp.google.com ([2620:15c:17:3:dc28:5c82:b905:e8a8]) by smtp.gmail.com with ESMTPSA id n26-v6sm5577986pgv.78.2018.07.23.10.04.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Jul 2018 10:04:38 -0700 (PDT) From: Eric Biggers To: linux-crypto@vger.kernel.org, Herbert Xu Cc: Eric Biggers Subject: [PATCH] crypto: scatterwalk - remove scatterwalk_samebuf() Date: Mon, 23 Jul 2018 10:04:28 -0700 Message-Id: <20180723170428.81064-1-ebiggers3@gmail.com> X-Mailer: git-send-email 2.18.0.233.g985f88cf7e-goog Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Eric Biggers scatterwalk_samebuf() is never used. Remove it. Signed-off-by: Eric Biggers --- include/crypto/scatterwalk.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/include/crypto/scatterwalk.h b/include/crypto/scatterwalk.h index eac72840a7d2..a66c127a20ed 100644 --- a/include/crypto/scatterwalk.h +++ b/include/crypto/scatterwalk.h @@ -30,13 +30,6 @@ static inline void scatterwalk_crypto_chain(struct scatterlist *head, sg_mark_end(head); } -static inline unsigned long scatterwalk_samebuf(struct scatter_walk *walk_in, - struct scatter_walk *walk_out) -{ - return !(((sg_page(walk_in->sg) - sg_page(walk_out->sg)) << PAGE_SHIFT) + - (int)(walk_in->offset - walk_out->offset)); -} - static inline unsigned int scatterwalk_pagelen(struct scatter_walk *walk) { unsigned int len = walk->sg->offset + walk->sg->length - walk->offset;