From patchwork Tue Apr 5 06:38:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8748251 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 850F49F336 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 552C32035D for ; Tue, 5 Apr 2016 06:38:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4E43C20306 for ; Tue, 5 Apr 2016 06:38:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755763AbcDEGir (ORCPT ); Tue, 5 Apr 2016 02:38:47 -0400 Received: from mail-pa0-f67.google.com ([209.85.220.67]:36342 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755450AbcDEGiq (ORCPT ); Tue, 5 Apr 2016 02:38:46 -0400 Received: by mail-pa0-f67.google.com with SMTP id 1so470987pal.3 for ; Mon, 04 Apr 2016 23:38:45 -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=cac+JhW1rz6u7GjrX8pZGz5VU4FU2LVu+F0u77LA6Vw=; b=ZEIh8TOqD8WeR2L3C93hV/AFYrBfqyGJOlQYDaXCxIHnCJxC5L2ePD7xiKMI3J0o7P 3l/05FSIVUQLZwKsTQsZbSs8NvgcwMlVPBC2tr2KZlxLqXI++gdJvgIQNBJiecHf7HVo +dM4T7wbwWTHzpM4cPj2A2mxr2Eeal3imdQ927w0vzj0J2Jq8zekb1hFzHim1xaxzbZJ brp6rS8yFLQ2ol3S4F12LKsukIgttAuIpNK5NELLa5yArjvx5LJDQMldNoJawtzufBrY bN1Qb6bImHzfCv4q9dOgqvaFRXYYEJjOlPcNCpwlruyo+3Yc2rVlHsO2e4PsjZW9ZaPQ TfFw== 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=cac+JhW1rz6u7GjrX8pZGz5VU4FU2LVu+F0u77LA6Vw=; b=Y0TjZcBLud9CrCOyHMgpEjvmaHQ/O0mdjEMDfqfgO2JgKJYdgv4jZTDgjQ/vCoSR4o qvnak6RUF7aGNBzWxcnF2za3Wso3vxtbMwgsk96+h/G1O76F1nDnO3QY3Ysn7LkHSUqk DpFle84W1xlRGwkCsQP8F1tyazKpC6CqdK/IyLo81QqLF7hnxR5FFLMQBg7nhQfz4SaS SQ3dNY1zdVV9DXyYgByFv7R8VGpFQQx5szkq+pV4QnkzXefFVSjLYAXD4R0+mcjRwe/W p6Y+dOG6E2kI009T4cbB4WWDw0bhO7se9jYlXyhmn9t8KLpQBA6j8pYqizMSVSBG/ACW CC1g== X-Gm-Message-State: AD7BkJJj9TvitQjtCvsTDcCEL2bushPRv2azYj0nJhFAsgE0FFpdbbsD5TQEQl8j9LpdzA== X-Received: by 10.66.118.106 with SMTP id kl10mr59298921pab.78.1459838325390; Mon, 04 Apr 2016 23:38:45 -0700 (PDT) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id 17sm43941853pfs.40.2016.04.04.23.38.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 04 Apr 2016 23:38:44 -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 03/14] staging: wilc1000: remove unused hif_drv in wilc_setup_multicast_filter Date: Tue, 5 Apr 2016 15:38:21 +0900 Message-Id: <1459838312-16506-3-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_setup_multicast_filter. 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 5cda382..a47666c 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -3952,12 +3952,6 @@ int wilc_setup_multicast_filter(struct wilc_vif *vif, bool enabled, int result = 0; struct host_if_msg msg; struct set_multicast *multicast_filter_param = &msg.body.multicast_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));