From patchwork Sun Jul 16 21:29:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mogens Lauridsen X-Patchwork-Id: 9843713 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.web.codeaurora.org (Postfix) with ESMTP id 269146037F for ; Sun, 16 Jul 2017 21:29:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 14BD426E40 for ; Sun, 16 Jul 2017 21:29:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EB92E26E4A; Sun, 16 Jul 2017 21:29:07 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, 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 8E7E526E40 for ; Sun, 16 Jul 2017 21:29:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751248AbdGPV3G (ORCPT ); Sun, 16 Jul 2017 17:29:06 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:33556 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751244AbdGPV3F (ORCPT ); Sun, 16 Jul 2017 17:29:05 -0400 Received: by mail-io0-f195.google.com with SMTP id z62so6176219ioi.0 for ; Sun, 16 Jul 2017 14:29:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=7xJP6t1R1cr48rW5YVI27/teR3Snc+AVlUB2cXe+aSg=; b=pAsxqIbSzIn197suyL5xht/EF8arND3oAcs7L2JbqjE2CueNGo6KkD/RDDFKbywY5D UZZqk9S9NY3lgtUDF9JNDlLJ8SWXD3MIkL363ZDerJOGTWm9E8TxQ0yo39cqSkSSZE1u aWd9rGHUgYSchNNlbl1ksiozCxWYzqAYdfU0+ZRH7q4KOahu6D1H0/LBpavw406zADL4 72UhxNYtwMemVJtRB+BCvw2hYNtN1Z55D5GWYaukeb0BbVuDM+Bu0CgJc/lx/VsvRSi5 V0tcGIawMVWN3L1L++5pkPl5rdKdE5SiBSeqO9g0u9/KtGaok3rbf0eIr+IuvcK00/fM lqdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=7xJP6t1R1cr48rW5YVI27/teR3Snc+AVlUB2cXe+aSg=; b=lcfZryYgVu1gHEmDYxbN7PQZuuOca7+UF2f1J3Nkh0QHnzCgf759ynDcBeP8OZ3gf3 R57wsj/tBie4Eh7p3F/m0KJdx/baiyswNMqjbNObA4qRaQEo5zTnOS2QK2k6uKFSnP2G nPaslLLFtvpDAG3uOBRz+T/fFBpd2XpwNCYagKMnJNUsWhI+sYFacnP0RIqKk08PtBSM 9N11I2wDUWr0cc91XEsB1arRX3BshCHMbD3yjlOOcVnuqeEOe9l5tn31nGEudNsa+v/1 15QvMaW09WQqZomDo7YifiDTobP3oaXToiMHbaodWm2L+2AYQrckhpJQlmBra31EQi3L aHqA== X-Gm-Message-State: AIVw112eEviqk82G2JG6tfyf1bUR5gJZQVX3KQpIjDZ0TJ0/1PZXWjCx 0UwEXDISJ3n33bq42pB8n3cyVzijKPzD X-Received: by 10.107.46.97 with SMTP id i94mr17144475ioo.192.1500240544907; Sun, 16 Jul 2017 14:29:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.186.168 with HTTP; Sun, 16 Jul 2017 14:29:04 -0700 (PDT) From: Mogens Lauridsen Date: Sun, 16 Jul 2017 23:29:04 +0200 Message-ID: Subject: Patch: Remove leftover from spinlock previous used in sahara driver To: linux-crypto@vger.kernel.org, Herbert Xu 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 Hi, The Freescale sahara driver has previously used a spinlock. This spinlock has been removed, but the spinlock variable is still there and is also being initialized. This patch removes the leftover. Thanks, Mogens Lauridsen Signed-off-by: Mogens Lauridsen diff --git a/drivers/crypto/sahara.c b/drivers/crypto/sahara.c index 9538c52..b35cbda 100644 --- a/drivers/crypto/sahara.c +++ b/drivers/crypto/sahara.c @@ -202,7 +202,6 @@ struct sahara_dev { struct completion dma_completion; struct sahara_ctx *ctx; - spinlock_t lock; struct crypto_queue queue; unsigned long flags; @@ -1487,7 +1486,6 @@ static int sahara_probe(struct platform_device *pdev) crypto_init_queue(&dev->queue, SAHARA_QUEUE_LENGTH); - spin_lock_init(&dev->lock); mutex_init(&dev->queue_mutex); dev_ptr = dev;