From patchwork Tue Apr 5 06:38:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8748271 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 74D04C0553 for ; Tue, 5 Apr 2016 06:38:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A3BDC2034C for ; Tue, 5 Apr 2016 06:38:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D3AD620320 for ; Tue, 5 Apr 2016 06:38:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756613AbcDEGix (ORCPT ); Tue, 5 Apr 2016 02:38:53 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:32858 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756602AbcDEGiw (ORCPT ); Tue, 5 Apr 2016 02:38:52 -0400 Received: by mail-pf0-f195.google.com with SMTP id e190so505279pfe.0 for ; Mon, 04 Apr 2016 23:38:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XjwYDzq7y0X3bLnn6Zzck03ClxEruldNJvHOvEnk/P8=; b=KpSuUF0uHYnlCPJchy4g7B3SrmvqoWev9DBWAKtNPlBSrB3WCNN1Mj1QhTPhaBjbyH bzqfq7Y6wCrAYzUcZhGbNiDkcFT2bsIx77wR1OKuRGTd86NuKJBxlfWNhzOxUzE/x5gE qtz9qjJ0cyXcB+5QbGbaC8T4KLdZPmMtcvJNdzxGXQqgtvqEjwB+XLC+9ZR/Jfv8xibG XRrTVhXVXVqay5IMT/7WOe0z93qgp5FS5YHl/vZ0KItLV3xUjvfgeDkM5LXexhdaumT2 ixE/0Zjc5+1YeHaJhDydQ9VM1d0VbC6sPJ43kfVRbNKn928BvzVgqUzybhXuAQYRzmyk kiaA== 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:in-reply-to :references; bh=XjwYDzq7y0X3bLnn6Zzck03ClxEruldNJvHOvEnk/P8=; b=WYFhM9XxmSF78Zkveza2PzXb9BUZYqK3Y16+2XBIVTeQxJzMuJAzF0S9E2026w0A+M VQ2Z1nzjLI28ZoCGMaTdQL4FZxY9RXyGsKIZbb18C4Y2MEEemm48aUTYjk7LgRYQOlO8 gNXpOpJtn94Np8kzGK3UiS6QHEjArDYv2wNuUtgBWldv7TLUFSy44uQZCuNk6u8eqnDT wSDzxgFBqPCyV595FwfVNJ/Ltd+GyIwhA7M2Npqavlx01jmQ/57DCuXVJNMXxTFs+FO8 iR+EqTx2GvLKGzk1mwROolxQtYRoO98OLTtQGB0+QT3iJWXbGNuk3v2Hk4a9XwX/09v8 UaJg== X-Gm-Message-State: AD7BkJIywQIaVNNyoR7MwOTz5sGSLDWtZeB/3Twe+HU9SKShSUEV+LOGLkB8yYujZEBQyQ== X-Received: by 10.98.93.205 with SMTP id n74mr26971501pfj.99.1459838331485; Mon, 04 Apr 2016 23:38:51 -0700 (PDT) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id 17sm43941853pfs.40.2016.04.04.23.38.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 04 Apr 2016 23:38:51 -0700 (PDT) From: Chaehyun Lim To: gregkh@linuxfoundation.org Cc: johnny.kim@atmel.com, austin.shin@atmel.com, chris.park@atmel.com, tony.cho@atmel.com, glen.lee@atmel.com, leo.kim@atmel.com, linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, Chaehyun Lim Subject: [PATCH 05/14] staging: wilc1000: remove unused hif_drv in wilc_edit_station Date: Tue, 5 Apr 2016 15:38:23 +0900 Message-Id: <1459838312-16506-5-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.8.0 In-Reply-To: <1459838312-16506-1-git-send-email-chaehyun.lim@gmail.com> References: <1459838312-16506-1-git-send-email-chaehyun.lim@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch removes unused hif_drv in wilc_edit_station. There is no need to checku null and print debug log. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index bfb738a..3222a5d 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -3889,12 +3889,6 @@ int wilc_edit_station(struct wilc_vif *vif, int result = 0; struct host_if_msg msg; struct add_sta_param *add_sta_info = &msg.body.add_sta_info; - struct host_if_drv *hif_drv = vif->hif_drv; - - if (!hif_drv) { - netdev_err(vif->ndev, "driver is null\n"); - return -EFAULT; - } memset(&msg, 0, sizeof(struct host_if_msg));