From patchwork Tue Apr 5 06:38:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8748331 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 D98B99F336 for ; Tue, 5 Apr 2016 06:39:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1C91C20320 for ; Tue, 5 Apr 2016 06:39:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3F0CB20306 for ; Tue, 5 Apr 2016 06:39:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756602AbcDEGjI (ORCPT ); Tue, 5 Apr 2016 02:39:08 -0400 Received: from mail-pa0-f66.google.com ([209.85.220.66]:33641 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752996AbcDEGjH (ORCPT ); Tue, 5 Apr 2016 02:39:07 -0400 Received: by mail-pa0-f66.google.com with SMTP id q6so481235pav.0 for ; Mon, 04 Apr 2016 23:39:07 -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=hcEXVLyUj+KWztZmIK8NvmglHv4TDmgEPnBzm/1ldF4=; b=mQ/U05exVg3rS1ETfhjlnBi17DIxgAK7roHq17oBgn5zQgHkrl8r1gU0z/rKgyNX85 dqOAHmkSbOguSik2VugGPMDkaQYU3jUEtw67/DjJM8KUsQ0orN6Od8ItMgJlw5JbpDU5 fq1Cdf03lVil6blslSn8HCrRmWi4lM+LJNirluctIwk/KbCwXOoGtuEvsf86wrsboSEs 8C6aP+aPStRmjeYZ1KDCJFHDin3NlMjeClR61qxbF43OGz2+p6OsWswbIZ5bb6zcAqAy xjDCF/qt3lsiYCQF1me3QaaQPtBO+1IRmuJFtK71Dvroq4YoQ/nxBkJ5aTPK4xVthrB7 roBQ== 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=hcEXVLyUj+KWztZmIK8NvmglHv4TDmgEPnBzm/1ldF4=; b=CUMGsKTO8dCnQR4yGQLSFQsZPwFd1A4q/c7XfH6OKGcX/hRd+IrwacuHNePb1B+7/1 IS7HJb/m3K4cCAI/pfMHSq0OeKvM4bh5dH8lk8KrGl3OYlBa6iyqgHWfaluivfK7cjFH /npkAU0x4cYJwDt5pnVcQBlb3IKMVx3VE+YZ6khbEnt4XHbrtMLRA5nHtY9rLEoCmXa0 V4T4FnYPdzhmolKc3gjEq/sHoyzMReQ2JdK87vKuukfIvDxTVPPbV8niUhuEFvhy3c8j h+BBjldeTi+Fl/KJxFXepe73FIub59u/VHy2d3/+31G8qV/H0Y6T/9ny8N3BwKGm+yEL bZsg== X-Gm-Message-State: AD7BkJJlzg89NasZjraN94rY9kj727164NAolNPbCCAeisbKJGaBesw4VJeRnaynjQhG6A== X-Received: by 10.67.21.167 with SMTP id hl7mr59097330pad.16.1459838346958; Mon, 04 Apr 2016 23:39:06 -0700 (PDT) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id 17sm43941853pfs.40.2016.04.04.23.39.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 04 Apr 2016 23:39:06 -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 10/14] staging: wilc1000: remove unused hif_drv in wilc_set_mac_chnl_num Date: Tue, 5 Apr 2016 15:38:28 +0900 Message-Id: <1459838312-16506-10-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_set_mac_chnl_num. 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 8591c00..7b28ae5 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -3134,12 +3134,6 @@ int wilc_set_mac_chnl_num(struct wilc_vif *vif, u8 channel) { int result; 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; - } memset(&msg, 0, sizeof(struct host_if_msg)); msg.id = HOST_IF_MSG_SET_CHANNEL;