From patchwork Tue Apr 5 06:38:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8748341 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 7E4479F336 for ; Tue, 5 Apr 2016 06:39:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B6C2A20320 for ; Tue, 5 Apr 2016 06:39:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E578220306 for ; Tue, 5 Apr 2016 06:39:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757220AbcDEGjL (ORCPT ); Tue, 5 Apr 2016 02:39:11 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:35660 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754544AbcDEGjK (ORCPT ); Tue, 5 Apr 2016 02:39:10 -0400 Received: by mail-pf0-f195.google.com with SMTP id r187so498716pfr.2 for ; Mon, 04 Apr 2016 23:39:10 -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=vqEbt6wW2egIp93DHmFCIPUZA29SsgC0Ahuo6rfJY5M=; b=KN1S+h6bFmBcq3yxA9i6l7tXJIs6DDF3uaP3Jlga0oVGn3iwiFKEhjGTG7ehJUhXIy f6oX5y1NsjH3dXqDLkCoIQ5o914jwcQ9rfN7TljJJT93WzuNbq07oayO7RMeGe+FOHrd lSpMr7mdmFxNXaqekrw9qcvAT7eZObtB3GfT7dTBH3ACP/np/6MATlg6X/tQ03hPUF25 WKFZt9fsAfO8utUsAvtA2WK4pPiLxKRlW9CUVis/J7lKqmzYxZaxtNcHUVBsFYqotH4/ ddQNooSrWin+R10EwwStzwwYC55FG9tK6HaN6GPz6m3Y3zKEJsh0pr+i3tnULDXXX44Z OtiA== 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=vqEbt6wW2egIp93DHmFCIPUZA29SsgC0Ahuo6rfJY5M=; b=b/f2exD6Ik6gBxbXTgKJFYVQOhQBZlFbGMD4e1WGh9hKJx19IwdfncXb7y596eSRdZ fYQ/WIsYLbkMEPI7C5ig5Z8v5Z9GrVcvmAu7ZhKEFjFnlnBb53ENOX2ic2tiH19h6L3h 2+Q6nsWhjt3j7JjQIhVMvjg5J3bLzn5s6+dIzmCzfD3GXpLzhuH0NmHMJskDHYirYuCH pE+H/rj3/dXbjRpF1jNEWXpNyFt42nRRSjGDIEcpuSPk3Wpmf3oLKTD4gfdpJgyi0LUj 5oO5ZKZQXZiToc7s9HIxqB4mHV9Zc31eC33bX0pg/AdOTW1UW7meBqln49fG34nXSD2J 8ndg== X-Gm-Message-State: AD7BkJI2wKr0v/qErkQdoOdBQ/Iz2CF+hAYtPWcKKv6tJEy29qYcf98gLQ2S8XOyF1vhPg== X-Received: by 10.98.1.69 with SMTP id 66mr27470932pfb.10.1459838350189; Mon, 04 Apr 2016 23:39:10 -0700 (PDT) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id 17sm43941853pfs.40.2016.04.04.23.39.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 04 Apr 2016 23:39:09 -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 11/14] staging: wilc1000: remove unused hif_drv in host_int_get_assoc_res_info Date: Tue, 5 Apr 2016 15:38:29 +0900 Message-Id: <1459838312-16506-11-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 host_int_get_assoc_res_info. 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 7b28ae5..d23c8ba 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -3106,12 +3106,6 @@ static s32 host_int_get_assoc_res_info(struct wilc_vif *vif, { s32 result = 0; struct wid wid; - struct host_if_drv *hif_drv = vif->hif_drv; - - if (!hif_drv) { - netdev_err(vif->ndev, "Driver is null\n"); - return -EFAULT; - } wid.id = (u16)WID_ASSOC_RES_INFO; wid.type = WID_STR;