Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2199548ybi; Sat, 25 May 2019 18:20:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqwIHbUGedCgNl9udJXU/caJR+f92fdtw4D/Q/k+KGkwqTdRCfE2kEKHU+CX8J3gO2iQ6Qpt X-Received: by 2002:a65:6151:: with SMTP id o17mr7844203pgv.283.1558833654078; Sat, 25 May 2019 18:20:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558833654; cv=none; d=google.com; s=arc-20160816; b=T0DDVctlUGLGKckmHsOFpflG/uBg8X3ZPngCYugibgq382UGAiJ8Lh9vCjqKtz0XAM mNWUp2jj2B28hAGU46MWwFqjmx8MMihS4tjR1Fdssiegi/2AH10V91NerT8Ne4HsrFCP svK7bzwzVnz3z9d9rXKaBKhn/vcIGBQlK3SEUZFXBEEpLGhkQy2k6nK8KdEjlfwx312Z bx/LHoZTQO4wqtTt2G0lqMONVZD8JeMN5orrHV78Lox1X0L2ZA8EJQoVTQ7LFbu9F7+i ZJL2u9AfJJL6XDG8gaU14hpN/9uMjc0uGzdY0rCTnsAhgE4lAuCqntAN1hbmbu/2XltO ojtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=q6Ng0YgGWXiNGzlc0581CkbBTTW9Uf73AKmysyNcLng=; b=ccFoUvfC150v9sXW/8Q/Yjs2v7Dkr1OBzGJODzhwMwNWY2AYl7rZsT8dk1PXPIUvTs tV+XeQRIwZ4tbebqJLzvFLi5cmhXCWGKzaOPTq6olDE4AoMc6hWczsyA92GcosfiwMyc Mb2yFyoYsDaKInc503Spm5EPcG1SoJpwWFygbrU68BuvN+Ucnki3JZMk94iARf/MYrBm Eeb1BOXZ+fc4K/O9FmYD+6b07z8y1IKKHIkVO9QsybmfSXiaxkYyi5aJ6BcomFYDxTv0 bMxyIMRGyA17ps0x1kDZ8YfIelERtohdi3UOHkHIgZi6mPnLI9SiEGdBFmctR+1zAll8 PGGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Yf6L+Q9J; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s68si12229190pfb.39.2019.05.25.18.20.38; Sat, 25 May 2019 18:20:54 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Yf6L+Q9J; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727626AbfEZBTc (ORCPT + 99 others); Sat, 25 May 2019 21:19:32 -0400 Received: from mail-vs1-f66.google.com ([209.85.217.66]:38686 "EHLO mail-vs1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727574AbfEZBTb (ORCPT ); Sat, 25 May 2019 21:19:31 -0400 Received: by mail-vs1-f66.google.com with SMTP id x184so8377936vsb.5 for ; Sat, 25 May 2019 18:19:31 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=q6Ng0YgGWXiNGzlc0581CkbBTTW9Uf73AKmysyNcLng=; b=Yf6L+Q9J31gPQCtI+ZutcjbC8Z2ybHGHiFmB72m+aPQ2YnaRBoBo2qS/hwa8m5nl1a rxyp0/b0duwXuzAjDl6sfw9fUX/9rXyBvzlsaEOeOp8jtOPTRrTAYwOhZtCCT2GJTnHu P1+h+RNI2EfzOtQXnzVUmtR+FGi9Hq9ulH4e1SuDgkKBA+Oc7JPPHegOR7Ehs0aPyDwh y1EfeG/f2BQbLJLZGOGLrP2zP0lYyQO6icxRvum03unK2uOKILritd6peM12XvXvxDNP obzP9MtDfvwqjdgqwLWFrLmgBGwoJ9msvnnxejj2/uB2W8JelG4i1Irhyv/8U4fz81AS 8rQg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=q6Ng0YgGWXiNGzlc0581CkbBTTW9Uf73AKmysyNcLng=; b=iyVv+guwzYvbhRoBOQoGYXRwoBM5Ra0xqtB8SKZuLPErIOfY99BmJVpXF4cfrqiv1X XsZHq3Bbds2076vnAfeN/L9RrVchdRyer2UEeRJ6sKcnO+p/V9EPFCF2TxItejnHWeoW 3LYBGbyt9m61WkrcDxFmA4raCnmxs6WQOi/wL9eQR/mNQGjyyGCg467ANEexZn/XbqGo IlbdVazAqvwvtLV8mNngF+vYFPf13ZQ6XRC2Ti/GRaLgxnzUz+foAV3u1QmiS7FXbGQv aE+Zrc26KzX3i5sNl+LmEp+BCJBo1i3WBFBJcGgnDbMy7yZY4293rYKYlfGUuiDMcjUN tv9A== X-Gm-Message-State: APjAAAVMKHLTF7m4pQXKzhK90gtqGvLsBjhU1tIcpYTBBjPRSlXQSY4a +eA3wYH3xaQsb/sHYk1A0xA= X-Received: by 2002:a67:f5cb:: with SMTP id t11mr57611899vso.197.1558833570906; Sat, 25 May 2019 18:19:30 -0700 (PDT) Received: from arch-01.home (c-73-132-202-198.hsd1.md.comcast.net. [73.132.202.198]) by smtp.gmail.com with ESMTPSA id 9sm4593181vkk.43.2019.05.25.18.19.29 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 25 May 2019 18:19:30 -0700 (PDT) From: Geordan Neukum To: Greg Kroah-Hartman Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Geordan Neukum Subject: [PATCH 1/8] staging: kpc2000: kpc_i2c: Remove unused rw_sem Date: Sun, 26 May 2019 01:18:27 +0000 Message-Id: <651e1f5f40fb7e7f45179eb8c550f34d51ed4787.1558832514.git.gneukum1@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In pi2c_probe, a rw_sem is initialized and stashed off in the i2c_device private runtime state struct. This rw_sem is never used after initialization. Remove the rw_sem and cleanup unneeded header inclusion. Signed-off-by: Geordan Neukum --- drivers/staging/kpc2000/kpc2000_i2c.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000_i2c.c b/drivers/staging/kpc2000/kpc2000_i2c.c index fb9a8386bcce..2c272ad8eca6 100644 --- a/drivers/staging/kpc2000/kpc2000_i2c.c +++ b/drivers/staging/kpc2000/kpc2000_i2c.c @@ -25,7 +25,6 @@ #include #include #include -#include #include #include #include "kpc.h" @@ -38,7 +37,6 @@ struct i2c_device { unsigned long smba; struct i2c_adapter adapter; struct platform_device *pldev; - struct rw_semaphore rw_sem; unsigned int features; }; @@ -606,7 +604,6 @@ static int pi2c_probe(struct platform_device *pldev) priv->features |= FEATURE_BLOCK_BUFFER; //init_MUTEX(&lddata->sem); - init_rwsem(&priv->rw_sem); /* set up the sysfs linkage to our parent device */ priv->adapter.dev.parent = &pldev->dev; -- 2.21.0