From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755458AbZJRWr7 (ORCPT ); Sun, 18 Oct 2009 18:47:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755434AbZJRWr5 (ORCPT ); Sun, 18 Oct 2009 18:47:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44765 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755430AbZJRWr5 (ORCPT ); Sun, 18 Oct 2009 18:47:57 -0400 Date: Mon, 19 Oct 2009 00:47:35 +0200 (CEST) From: John Kacur X-X-Sender: jkacur@localhost.localdomain To: linux-kernel@vger.kernel.org, Thomas Gleixner cc: Alan Cox , Arnd Bergmann , Ingo Molnar , Frederic Weisbecker Subject: Subject: [PATCH] crypto: s390: Remove BKL in zcrypt_open Message-ID: User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>From 7673a4ec79b4b4edf3cead3ed88a93d6081c44f0 Mon Sep 17 00:00:00 2001 From: John Kacur Date: Mon, 19 Oct 2009 00:44:03 +0200 Subject: [PATCH] crypto: s390: Remove BKL in zcrypt_open Do we really need to look an atomic_inc? I don't think so. Signed-off-by: John Kacur --- drivers/s390/crypto/zcrypt_api.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/drivers/s390/crypto/zcrypt_api.c b/drivers/s390/crypto/zcrypt_api.c index 65b6a96..e55e311 100644 --- a/drivers/s390/crypto/zcrypt_api.c +++ b/drivers/s390/crypto/zcrypt_api.c @@ -34,7 +34,6 @@ #include #include #include -#include #include #include #include @@ -299,9 +298,7 @@ static ssize_t zcrypt_write(struct file *filp, const char __user *buf, */ static int zcrypt_open(struct inode *inode, struct file *filp) { - lock_kernel(); atomic_inc(&zcrypt_open_count); - unlock_kernel(); return 0; } -- 1.6.0.6