From patchwork Fri Sep 23 13:21:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76863 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp567617qgf; Fri, 23 Sep 2016 06:21:55 -0700 (PDT) X-Received: by 10.98.48.4 with SMTP id w4mr12302499pfw.86.1474636915441; Fri, 23 Sep 2016 06:21:55 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l62si7918473pfl.260.2016.09.23.06.21.55; Fri, 23 Sep 2016 06:21:55 -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=@linaro.org; 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 dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759814AbcIWNVw (ORCPT + 27 others); Fri, 23 Sep 2016 09:21:52 -0400 Received: from mail-pf0-f173.google.com ([209.85.192.173]:35397 "EHLO mail-pf0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757839AbcIWNVv (ORCPT ); Fri, 23 Sep 2016 09:21:51 -0400 Received: by mail-pf0-f173.google.com with SMTP id s13so7876817pfd.2 for ; Fri, 23 Sep 2016 06:21:51 -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=UU2T2EYubJvphOd79aRkO8unCm7QTP7McO05dvFbGlg=; b=M6BzDelia+F6Q4IwbM9IhCM0p8OY+ujYvWsKJl9xq58lA2qhq6Co4MVy+znkB+aVaW +VhVZ+oXDmAm/kpBoqQb8HKsbwgWpeNxc3rplLxNFX8EgcRn1r1h9HTvEL0UyD0U9a02 oPvRmHhE0mX77Krq57+QdrO1FxoMyUpRJ1K+A= 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=UU2T2EYubJvphOd79aRkO8unCm7QTP7McO05dvFbGlg=; b=exwHxEmNYYAWbzT6qVU+wI5HiDShZYInqrx0+1NBY4GihiuqBrPkhSj8/FCKmduJ2L hqdcF7d2VfkTxk2ZP7jLO5NvVrDydbEi6PIXTHtcPLzbcDFL/+3/kBrrOQ6IO35BiHVx dxasQ1fZwAz42NdIGtgEgEkUrgjyAoPuBMS3JsjaJg/0XtVYeG+4jwBUCBStdz9j00vq yVRITNGKnh/tLJmQU49pa5Y/KCTqnCsEnjZij0LN+0/vmgijlnpLiU+XSBhPGmoSDEkT KHx74hNASfhGjGqmVfRecZJ1eGlxHb89pztEESVNZXaQi1/28tope5aMfjkvs2dX105d 2M2A== X-Gm-Message-State: AE9vXwNLDfOMR+//a4jn2E8kJgkiN3bXDIR4IgoR1527JdOAkmBqtLN98BjwcdSGGnxEaxpF X-Received: by 10.98.223.218 with SMTP id d87mr12703110pfl.48.1474636910903; Fri, 23 Sep 2016 06:21:50 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.27]) by smtp.gmail.com with ESMTPSA id an11sm11754899pac.26.2016.09.23.06.21.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Sep 2016 06:21:50 -0700 (PDT) From: Baoyou Xie To: gregkh@linuxfoundation.org, wsa@the-dreams.de, bhumirks@gmail.com, dan.carpenter@oracle.com, julia.lawall@lip6.fr, weiyongjun1@huawei.com, karniksayli1995@gmail.com Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH 2/2] Staging: ks7010: remove unused function in ks_wlan_net.c Date: Fri, 23 Sep 2016 21:21:33 +0800 Message-Id: <1474636893-10246-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get 1 warning when building kernel with W=1: drivers/staging/ks7010/ks_wlan_net.c:3520:5: warning: no previous prototype for 'ks_wlan_reset' [-Wmissing-prototypes] In fact, these functions are unused in ks_wlan_net.c, but should be removed. So this patch removes the unused function. Signed-off-by: Baoyou Xie --- drivers/staging/ks7010/ks_wlan_net.c | 5 ----- 1 file changed, 5 deletions(-) -- 2.7.4 diff --git a/drivers/staging/ks7010/ks_wlan_net.c b/drivers/staging/ks7010/ks_wlan_net.c index ee9c8f3..f1cd90e 100644 --- a/drivers/staging/ks7010/ks_wlan_net.c +++ b/drivers/staging/ks7010/ks_wlan_net.c @@ -3516,8 +3516,3 @@ int ks_wlan_net_stop(struct net_device *dev) return ret; } - -int ks_wlan_reset(struct net_device *dev) -{ - return 0; -}