From patchwork Thu Oct 20 08:54:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Binoy Jayan X-Patchwork-Id: 78459 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp668778qge; Thu, 20 Oct 2016 01:54:47 -0700 (PDT) X-Received: by 10.99.111.142 with SMTP id k136mr16007984pgc.143.1476953687279; Thu, 20 Oct 2016 01:54:47 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id dz8si36883753pab.18.2016.10.20.01.54.47; Thu, 20 Oct 2016 01:54:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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=@linaro.org; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935284AbcJTIyn (ORCPT + 1 other); Thu, 20 Oct 2016 04:54:43 -0400 Received: from mail-pf0-f178.google.com ([209.85.192.178]:32821 "EHLO mail-pf0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935266AbcJTIyk (ORCPT ); Thu, 20 Oct 2016 04:54:40 -0400 Received: by mail-pf0-f178.google.com with SMTP id 128so32714773pfz.0 for ; Thu, 20 Oct 2016 01:54:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=JGk+FzRMjJVGK5LB58CDkor0NIAiYhhJG9s5ppEBaqU=; b=FwUIqtOxcFYSBcXZPN33ERn2LqyEebaIwr+dvCf2JA2rOn4xIJjSdMkHW+POO+2bmi TR39b4tIvvbRdgwhpELTzjRjx7ZaLE6JdZHL43Hs2pQCLb0dlQpXJtLh0QLV9FdX8S22 6S1xFul0abHdvBZq5avTrW8jX9AVFMD/zqWRk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=JGk+FzRMjJVGK5LB58CDkor0NIAiYhhJG9s5ppEBaqU=; b=eLCKBWZt8793BX/gHg9tOYySa4zrpYTDeAt5JFARp2SbxV7w6kdbOHB1TH3FrzO69d Xp0tVDT8A48hlRTynBlpf3CsOxGuC6HK1YSTylJpa6gfwmV1jmVHj0KVxoEgG3EeT9pu 5N4AZMwcckOJ2NPAPvk+CIJl0B2Yzyn+xSZ273y6DddduY92CRUVyS+9BkfRiNkoEU2o RuSL+bmlXSVy5J/Z7sbb6iMxYoEXvWVcuLg7XwJrh5LvhoLe2ZGiaPIqANJhUpu79/Jv 2DOisIeIGBcoxvIynoANDZ5mm1nCUSy5HX4yX+gjQll7WpMLbBG4u6JgLRG92iZeO4GM kyFQ== X-Gm-Message-State: AA6/9RlkWDsWwPdmOX1Ye/JQDCc84SuwOqBeQoV5yxVSQuFgjXEscZfyKQ31V8je/e2Wgbgw X-Received: by 10.98.202.156 with SMTP id y28mr19605389pfk.130.1476953679396; Thu, 20 Oct 2016 01:54:39 -0700 (PDT) Received: from blr-ubuntu-59.ap.qualcomm.com ([202.46.23.61]) by smtp.gmail.com with ESMTPSA id dh9sm11613946pac.14.2016.10.20.01.54.36 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Oct 2016 01:54:38 -0700 (PDT) From: Binoy Jayan To: Greg Kroah-Hartman , Aditya Shankar , Ganesh Krishna Cc: Arnd Bergmann , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Binoy Jayan Subject: [PATCH] staging: wilc1000: Remove unused function wilc_lock_timeout Date: Thu, 20 Oct 2016 14:24:32 +0530 Message-Id: <1476953672-2198-1-git-send-email-binoy.jayan@linaro.org> X-Mailer: git-send-email 1.8.2.1 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Semaphore are going away in the future, so remove the unused function wilc_lock_timeout which calls a semaphore api but has no users. Signed-off-by: Binoy Jayan --- They following is a patch which removes semaphores from wilc1000. Its part of a bigger effort to eliminate all semaphores from the linux kernel. drivers/staging/wilc1000/linux_wlan.c | 11 ----------- 1 file changed, 11 deletions(-) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c index 6370a5e..470d59f 100644 --- a/drivers/staging/wilc1000/linux_wlan.c +++ b/drivers/staging/wilc1000/linux_wlan.c @@ -218,17 +218,6 @@ static void deinit_irq(struct net_device *dev) } } -int wilc_lock_timeout(struct wilc *nic, void *vp, u32 timeout) -{ - /* FIXME: replace with mutex_lock or wait_for_completion */ - int error = -1; - - if (vp) - error = down_timeout(vp, - msecs_to_jiffies(timeout)); - return error; -} - void wilc_mac_indicate(struct wilc *wilc, int flag) { int status;