From patchwork Wed Mar 7 09:25:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10263687 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D878560247 for ; Wed, 7 Mar 2018 09:26:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CC36D29452 for ; Wed, 7 Mar 2018 09:26:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C09CC29467; Wed, 7 Mar 2018 09:26:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B22A229452 for ; Wed, 7 Mar 2018 09:26:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751154AbeCGJ0L (ORCPT ); Wed, 7 Mar 2018 04:26:11 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35056 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751071AbeCGJ0K (ORCPT ); Wed, 7 Mar 2018 04:26:10 -0500 Received: by mail-wm0-f67.google.com with SMTP id x7so3334653wmc.0 for ; Wed, 07 Mar 2018 01:26:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=bvulSeG7Nm7FZR5qjYxGGIV9NJ2h/Qj0sVaNul+boyY=; b=kDIJBsNI7+Po16QuBzXePE0mJhFR8mz/KW1gDLdSppWnEgLaOrv43g+xUabqxKvjRa LRYFqHYTbIKsXZ+ELh/9dbacM8kk6m04c6nIyH0bVLz3E23X6xoSuMxRz5W8ShMJR//3 Z/PZ00rkc6mS/DlxB2MjtpW/WDt/TEzHHq4gZ6Klvb1Soh9LA1RKOzckKu6kzWAmfcWO xYzhNvqnn68ZIlOxV1JwV+v/6KOk7X9+yWN9GQ7hVz1Oiqvy7x5Rktd+YwhPqD3/+fcK zO9WdrjNW5oQuuNe24X9AnAY/5Op9UjjP7E+++uYBpEFWQIq965lTiUciZu9EsHdV3j8 jDTA== X-Gm-Message-State: AElRT7H/ULC2xfzgA6EjsG+tG7o+IRAS5FwQmlCawDCSuGOW8A5IUm/n ccqdCnNKpnxmzXnVf0Qq6ZMsHA== X-Google-Smtp-Source: AG47ELu2cI8Kb0kMfViTRgWlCrolSTEFNMziqXTAPLMqC9vs0SWhPQJxRgYC4HtIWYnrpib7VCeyoA== X-Received: by 10.28.191.70 with SMTP id p67mr14933455wmf.17.1520414769461; Wed, 07 Mar 2018 01:26:09 -0800 (PST) Received: from localhost.localdomain.com (nat-pool-mxp-t.redhat.com. [149.6.153.186]) by smtp.gmail.com with ESMTPSA id a1sm17662446wra.41.2018.03.07.01.26.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Mar 2018 01:26:08 -0800 (PST) From: Lorenzo Bianconi To: kubakici@wp.pl Cc: linux-wireless@vger.kernel.org Subject: [PATCH] mt7601u: simplify mt7601u_mcu_msg_alloc signature Date: Wed, 7 Mar 2018 10:25:50 +0100 Message-Id: X-Mailer: git-send-email 2.14.3 In-Reply-To: References: Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove mt7601u_dev parameter from mt7601u_mcu_msg_alloc signature since dev pointer is never used in routine body Signed-off-by: Lorenzo Bianconi Acked-by: Jakub Kicinski --- drivers/net/wireless/mediatek/mt7601u/mcu.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt7601u/mcu.c b/drivers/net/wireless/mediatek/mt7601u/mcu.c index 65a8004418ea..d9d6fd7eff5e 100644 --- a/drivers/net/wireless/mediatek/mt7601u/mcu.c +++ b/drivers/net/wireless/mediatek/mt7601u/mcu.c @@ -58,8 +58,7 @@ static inline void trace_mt_mcu_msg_send_cs(struct mt7601u_dev *dev, trace_mt_mcu_msg_send(dev, skb, csum, need_resp); } -static struct sk_buff * -mt7601u_mcu_msg_alloc(struct mt7601u_dev *dev, const void *data, int len) +static struct sk_buff *mt7601u_mcu_msg_alloc(const void *data, int len) { struct sk_buff *skb; @@ -171,7 +170,7 @@ static int mt7601u_mcu_function_select(struct mt7601u_dev *dev, .value = cpu_to_le32(val), }; - skb = mt7601u_mcu_msg_alloc(dev, &msg, sizeof(msg)); + skb = mt7601u_mcu_msg_alloc(&msg, sizeof(msg)); if (!skb) return -ENOMEM; return mt7601u_mcu_msg_send(dev, skb, CMD_FUN_SET_OP, func == 5); @@ -208,7 +207,7 @@ mt7601u_mcu_calibrate(struct mt7601u_dev *dev, enum mcu_calibrate cal, u32 val) .value = cpu_to_le32(val), }; - skb = mt7601u_mcu_msg_alloc(dev, &msg, sizeof(msg)); + skb = mt7601u_mcu_msg_alloc(&msg, sizeof(msg)); if (!skb) return -ENOMEM; return mt7601u_mcu_msg_send(dev, skb, CMD_CALIBRATION_OP, true);