From patchwork Tue Apr 5 06:38:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8748261 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 ED668C0553 for ; Tue, 5 Apr 2016 06:38:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1DB4B20320 for ; Tue, 5 Apr 2016 06:38:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 47F2820351 for ; Tue, 5 Apr 2016 06:38:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756372AbcDEGit (ORCPT ); Tue, 5 Apr 2016 02:38:49 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:35560 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755917AbcDEGit (ORCPT ); Tue, 5 Apr 2016 02:38:49 -0400 Received: by mail-pf0-f193.google.com with SMTP id r187so497969pfr.2 for ; Mon, 04 Apr 2016 23:38:48 -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=p9P2S3y1gLfEz05Xr9rDLGJpTa1tgm29FLgMsobC/s0=; b=BpfuIvLNm5z+GbZwU3Qf2l8yEm5xPvJf7+nELJwRmE/BOE4LArB2Cx4PttcinsJE3r 1V7dGm0VpWRgVrBbqG2nFKL/tDgtSB51HYiAur+PxdBCm0EbXiO3choxo+1IZizQZsj+ B8IB7/vXVzun0FR/vVdvrHT4EuhjrCPXmg4LhgegIAtlAYVQ4axJcSAtz3AXagZ8RZo/ S3Cn0HJR1EqGnN9ogBeoMWl0EpiLvxU4EBY7b3fI3pk6CvRzW01zCqClqO4Xnzm7523R 5yL4IhI4WIlcjqPTdhagR6kiQirMCrShrU1Q5d6h61v5DDicLawhXJYFpJUAgt7rQAog cc6w== 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=p9P2S3y1gLfEz05Xr9rDLGJpTa1tgm29FLgMsobC/s0=; b=dCcrkDdx4JUZYz6bzCnT3dVoXPbNOMqY4Dwidvct+tkrAfIIY1iNEHMN2JKcz91mps isKS3DKQhno/hjVsFcFTyqQ99DOLMEWr5TTy1B4Z7n3NytO/hI3yQZiV/8w7w8JWJBLi jqJzH3lNJOr+Vw+bLqgbgcCdt9JNnMazfWv3ku18mt8JaVfn51tSCpLujoEkXMu8NgYq XqyMx6xl09+kNFI3NTlPaMStq4a3O50Sd5S8YhzavJF/m614hPRht8YY0xckfczKDTED /Pt7tVBx2bQ3jt1tKEdbJjDGkbPEGE1ODCJWX8MJXRAY0F7H5s/sf7aFCcfvkFqOGkPF NVIg== X-Gm-Message-State: AD7BkJJ+r+W8kIzoXvTpbt9MnpkVb9nhaQjqUR3IU3K31NqojXJeaPPPQnopBXBOu4GArw== X-Received: by 10.98.11.205 with SMTP id 74mr26937944pfl.98.1459838328437; Mon, 04 Apr 2016 23:38:48 -0700 (PDT) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id 17sm43941853pfs.40.2016.04.04.23.38.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 04 Apr 2016 23:38:48 -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 04/14] staging: wilc1000: remove unused hif_drv in wilc_set_power_mgmt Date: Tue, 5 Apr 2016 15:38:22 +0900 Message-Id: <1459838312-16506-4-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_power_mgmt. 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 a47666c..bfb738a 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -3922,12 +3922,6 @@ int wilc_set_power_mgmt(struct wilc_vif *vif, bool enabled, u32 timeout) int result = 0; struct host_if_msg msg; struct power_mgmt_param *pwr_mgmt_info = &msg.body.pwr_mgmt_info; - struct host_if_drv *hif_drv = vif->hif_drv; - - if (!hif_drv) { - netdev_err(vif->ndev, "driver is null\n"); - return -EFAULT; - } if (wilc_wlan_get_num_conn_ifcs(vif->wilc) == 2 && enabled) return 0;