Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3185699ybi; Sun, 2 Jun 2019 09:00:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFgUJzzdYeVb7HF+H0ZDOIY6IqhxCy34R4VipKOMoqakHpT8gklSqiT5TSgUb2+fMrq3Jd X-Received: by 2002:a63:6884:: with SMTP id d126mr22993060pgc.154.1559491254172; Sun, 02 Jun 2019 09:00:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559491254; cv=none; d=google.com; s=arc-20160816; b=OKKu7dGrwA05qTXWkf437NZYEc+mZSWgUAfjciwSgheHBHyW/uOzgu9+5rtNqevq5E RyHUDqUafGMB/DOuiOfF3Raak1Dmc3jI2/D1Ih1YhsIkr6ljC4r4pjipR1MMqp7vasF0 Zb8NrDzsysyY6G9nHtF7HtJhkSyf48dqfTB0GZjQDGrhUhV/aRSlGB4Fc3oWMoOBY5oH JloV0bOQCEVr32Lp7o4YPSe0lgy1l/PT+kBhPcl9AdfBKR6VNgpg8bAEqlivMCOhbTuz epK3snPGL52pA7xey9sctYFSrL53zsUNxAQ3f4TfvB5Zhx4oqImaQjEd+1VEBNn5P38P gCPQ== 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=+x69TcqR+bFk5ojFt7qJV1dRlBhJRgOfaQiTn1tZPS8=; b=sIs/NYXHow0QpT4XkY2qQBe6/0waDXa0OBVoe87Ekcx9oivFQYGn58+QFdxLPZYguM Uu0jdWMYB+8qsFRenRS8iGbDVAJrfSrCZ5EJ+hWV7K5dSNmKmFFQt/D+6YCEB1i92Xwl 87LQGzVRZ2ekjJ/fBIpNgIYHbR2UcQQI8A13Y9p9F/2GqSFdW+tJwWOTCq4Z8h2HrcZQ mTG8FJjYY+0uiE2wcI0eJ4xAyNP3yzF0PyeXd1F4J33Dp2zXVNkMDQQCZkOLcPGea17Y iylA4wn+xNhNTDAcmAwqhKuQ4LijKn33GJE+ByYCvvqjGzM2MvE3+MtOTbGmqcv6iXwO Jg4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MYvCheit; 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 r25si10044043pga.294.2019.06.02.09.00.34; Sun, 02 Jun 2019 09:00: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=MYvCheit; 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 S1726832AbfFBP7V (ORCPT + 99 others); Sun, 2 Jun 2019 11:59:21 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:37051 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726807AbfFBP7U (ORCPT ); Sun, 2 Jun 2019 11:59:20 -0400 Received: by mail-qt1-f195.google.com with SMTP id y57so6843035qtk.4 for ; Sun, 02 Jun 2019 08:59:19 -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=+x69TcqR+bFk5ojFt7qJV1dRlBhJRgOfaQiTn1tZPS8=; b=MYvCheitu3trQbthrCc+NFtNRsCrAR0AMpD2tJHUlLfNo3NAxwCOI08WShtnySj6Lx 4S95Rt70PtwzG5dzxZh4Z2SykzZgIEWiHW+dOJi/LAI8Swf/NIJROgPvx+8EfncWdSNR 5FH0cayP0kzhWdojRYM1FeqLGGONVmBpZ36e6/ttlVZMWIu40UhLcSerIk+EmaPZkyz/ JsRiHN4EzcULpDLEzME+p0e0oAeWkLOnix0Er6dV4xN744QJoQkXU7NgYQy4MiwTPa43 v7b5CT/tTr+lVF+vkHnF3uXRnFkMhFNzSWRGn4v5LVzUT022VoTYBwSPCIK8IDhSWEf1 Pr7Q== 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=+x69TcqR+bFk5ojFt7qJV1dRlBhJRgOfaQiTn1tZPS8=; b=T6HSjSK752UgOdb7x8jJR6B5I8omyb/prmR4oRHzfx3h2veys0enV5APipbv1il3Ac 4oyzywaPnRHUnXIqZQiqGU8jIOUqgcH/8SuGrGb8isZdKbjLWkvB2CpuUyeA1BrPyv+k 1czptf2ek876ncFG+oEaNDqwsl4jEgVjQ7nFFps6tSV1SKPSBH8YimBEutYl1b8nPfiG YwkTg7cAYzr45HBXYng2C21VbsdQVo2kZVnGeeLGsmwohTwdfIIdU1Y54QUrcJWm9Ed+ dxvFs8Co+tq5bd34Lsb+th9VOS3RS8CIPi1i80b0j881tbzhjgA10TT2L2tXN1XD3P6J 8new== X-Gm-Message-State: APjAAAWCDvIE24BtOahuCdJcZ4XHfAmjrmSMq16zhGLjnfsleYPHxZUB hftF2SU4hFddr/4EknUJvp0= X-Received: by 2002:a05:6214:206:: with SMTP id i6mr13189095qvt.169.1559491159296; Sun, 02 Jun 2019 08:59:19 -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 n7sm7378589qkd.53.2019.06.02.08.59.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Jun 2019 08:59:18 -0700 (PDT) From: Geordan Neukum To: Greg Kroah-Hartman Cc: Jeremy Sowden , Mao Wenan , YueHaibing , Nathan Chancellor , Geordan Neukum , Dan Carpenter , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/5] staging: kpc2000: kpc_spi: remove function kp_spi_bytes_per_word() Date: Sun, 2 Jun 2019 15:58:36 +0000 Message-Id: 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 The static function kp_spi_bytes_per_word() is defined in kpc2000_spi.c, but it is completely unused. As this function is unused, it can and should be removed. Signed-off-by: Geordan Neukum --- drivers/staging/kpc2000/kpc2000_spi.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000_spi.c b/drivers/staging/kpc2000/kpc2000_spi.c index 049b1e324031..b513432a26ed 100644 --- a/drivers/staging/kpc2000/kpc2000_spi.c +++ b/drivers/staging/kpc2000/kpc2000_spi.c @@ -162,20 +162,6 @@ union kp_spi_ffctrl { /*************** * SPI Helpers * ***************/ - static inline int -kp_spi_bytes_per_word(int word_len) -{ - if (word_len <= 8){ - return 1; - } - else if (word_len <= 16) { - return 2; - } - else { /* word_len <= 32 */ - return 4; - } -} - static inline u64 kp_spi_read_reg(struct kp_spi_controller_state *cs, int idx) { -- 2.21.0