From patchwork Tue Apr 5 06:38:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8748361 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E24849F336 for ; Tue, 5 Apr 2016 06:39:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2B76520320 for ; Tue, 5 Apr 2016 06:39:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 62CFC20306 for ; Tue, 5 Apr 2016 06:39:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932490AbcDEGjS (ORCPT ); Tue, 5 Apr 2016 02:39:18 -0400 Received: from mail-pa0-f67.google.com ([209.85.220.67]:33698 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751398AbcDEGjR (ORCPT ); Tue, 5 Apr 2016 02:39:17 -0400 Received: by mail-pa0-f67.google.com with SMTP id q6so481592pav.0 for ; Mon, 04 Apr 2016 23:39:16 -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=bdcnfXAP7eYWOXvrFtOqQHOmDNIc+bYuHH3lfv9bHqw=; b=eS0whrxEo8+FTTi7h0oxFcSSZEXUaXYCd8Ja+S5YbCLSQ5hpNa4fTpl8sIKvnWXShN hyvxO2vLlb1HyUCWkxDymwF8IswBKMBUFLKd844q8qwUD3FcI2h3L9bj0n7U4diZjg4e 3KwtnZEYHbR6Zzv4b1/gb9IFSPkog5L7HJOOk2fpvkQ5XsuuXEed7IWaCCzIlzKgILq4 YVkSFW9YZw1IRslU6v5/OlWol3/tJbVt8rd/1Ahwy1cHxbQjwwWIG2TQium6Wvg5Wdny 8Ca+87oAzjMqgGGujcnnEUJrbgzXdlNQaURysOZKmnoMKbhvvEliF7vOwx+lLmwNISWi brqg== 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=bdcnfXAP7eYWOXvrFtOqQHOmDNIc+bYuHH3lfv9bHqw=; b=fzQ1CQJhOVw5Hs3t6qEKaH2Ol4NHjn3KPOcdzuIqIzhcIXnAqXry8CbkRUNKlZLekd OcikLMewAt14gNeX8PCMc3FE1VlGjo2HZ3rYfpgCHAgWeh6L3rCWD+RzD0cvBGkl9FDJ arvH1Hw5AVqlw+Y+orzs5FjtIcweNHcB78qF0RJQA6Yi5JErOtYP3EGCG3FPGB6UO/Ce tjK1ZWOf1dkO+9rUgmKxmNNtjEu9gX71+f8+8TxSN0Ag2BXWQSmnewWtKvcECVkXdrWi tuBSJU8HFUP3EDVAEfimMpzdz6nt7kIPxsomJiL8giCVw3D8OnSyMXOXNkZh6V5U3wfL W/vg== X-Gm-Message-State: AD7BkJK/Er2dto1dPCormj8S8NxedtL68i221ds1oWGWYkMkTkcFWUHwGjTL2kfWg40MWw== X-Received: by 10.67.1.237 with SMTP id bj13mr60413616pad.130.1459838356323; Mon, 04 Apr 2016 23:39:16 -0700 (PDT) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id 17sm43941853pfs.40.2016.04.04.23.39.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 04 Apr 2016 23:39:15 -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 13/14] staging: wilc1000: remove unused hif_drv in wilc_del_beacon Date: Tue, 5 Apr 2016 15:38:31 +0900 Message-Id: <1459838312-16506-13-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_del_beacon. There is no need to check 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 270bb3e..2dba954 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -3742,12 +3742,6 @@ int wilc_del_beacon(struct wilc_vif *vif) { int result = 0; struct host_if_msg msg; - struct host_if_drv *hif_drv = vif->hif_drv; - - if (!hif_drv) { - netdev_err(vif->ndev, "driver is null\n"); - return -EFAULT; - } msg.id = HOST_IF_MSG_DEL_BEACON; msg.vif = vif;