Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3899687yba; Mon, 29 Apr 2019 10:18:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxfEsYcP7W+L02LV2ZVkxjLh/6IK1zlA88eDIfTFRUT+JvXzIoRaIsmOPN7NnoUduDt3VQR X-Received: by 2002:aa7:8212:: with SMTP id k18mr63456727pfi.50.1556558284287; Mon, 29 Apr 2019 10:18:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556558284; cv=none; d=google.com; s=arc-20160816; b=RAjuVgxU5jYD46sTNCXHDrjMsrKajTCjiUBU2Dic7q95jlVpFkIf4Hq9LyXIpKWr+4 ZSNTjvD1wiKJRC0SwWIgC77UCrakQN4ht/RZZI9VdHYCwOK7a665oH3Wv3grI7NsAaR3 tkHaAf/iYWIkXpQxuz5bPadQorr070yzur2YnB+996v7GS7ul55kNyUMzR12+kzX7BDU /fl0z5XRq5Wy8pxTKa+oj2kNKXH8h97UwJJlAtXArFeh6YUtB0Har6mQx/nqTSp6l19h ZbuY4EtBXM7FmWxMMMxUsUW96UOTNhRE/VpzniZvhrQB7QPOAeJP6H3usvsApdfaB/N8 sd4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:to:from:dkim-signature; bh=0X4uyWwzNc04tcMgVTVgcXTRC/MGRYogdl72B1UBRGw=; b=y4cdbBF+2J00zG97/o/p3czAro9JfQc5VS4mYdlhWb3dynlOm6NEfJ5EH6q9HtQ9i/ py6MmCf/UM459Kb1XDENa5b8FB3wvyAPMI4mYAKxnmpF4XYCMbN7GLi99r8l/lPxeMbI L6TLEHmr9OK7XsF11GnmWymY4Ia5X5oP9NepYTZ9mvXe76VHLsx776Sj9le7S8UwfEGX 4xGS0uVB6Gyd7ZmupWvx2muaZPnUiVj3/eGQESxvfR3m9vbWzVU+pJ3PtgSe2sw6sdx/ gift2PblzSV81VI1ZxUnIBsLSrDic4NxssCrvYMUM8kg/TVZbbHw0cvETtl+mGFZ1Od2 Fk/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=sx8vcuMO; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m63si3404028pld.52.2019.04.29.10.17.36; Mon, 29 Apr 2019 10:18:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=sx8vcuMO; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728914AbfD2RRP (ORCPT + 99 others); Mon, 29 Apr 2019 13:17:15 -0400 Received: from nbd.name ([46.4.11.11]:37838 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728767AbfD2RRP (ORCPT ); Mon, 29 Apr 2019 13:17:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=References:In-Reply-To:Message-Id:Date:Subject:To:From:Sender: Reply-To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=0X4uyWwzNc04tcMgVTVgcXTRC/MGRYogdl72B1UBRGw=; b=sx8vcuMOfmSTfIhp1txyQFCkra DAfIGA7exfrH4MpFmAyqkwcOChWEUA0EBuffbFf0SawrvTJFPvceVo/odvKz/LBHAL7Sox4ng4y9e ZS2HTNnv1OmcwfP/ucNYazFZIDXvVUqQmLH8203g2UNvW6zJzUHe7VZ3mlfI+eY31jlU=; Received: from p4ff135f1.dip0.t-ipconnect.de ([79.241.53.241] helo=maeck-2.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hL9ty-0001Dy-6t for linux-wireless@vger.kernel.org; Mon, 29 Apr 2019 19:17:14 +0200 Received: by maeck-2.local (Postfix, from userid 501) id 3998D5A48250; Mon, 29 Apr 2019 19:17:13 +0200 (CEST) From: Felix Fietkau To: linux-wireless@vger.kernel.org Subject: [PATCH 4/4] mt76: mt7615: use sizeof instead of sizeof_field Date: Mon, 29 Apr 2019 19:17:12 +0200 Message-Id: <20190429171712.52983-4-nbd@nbd.name> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20190429171712.52983-1-nbd@nbd.name> References: <20190429171712.52983-1-nbd@nbd.name> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org It is simpler in this case Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7615/mcu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c index b09540654b09..ea67c6022fe6 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c @@ -88,8 +88,7 @@ static int __mt7615_mcu_msg_send(struct mt7615_dev *dev, struct sk_buff *skb, FIELD_PREP(MT_TXD1_PKT_FMT, pkt_fmt); txd[1] = cpu_to_le32(val); - mcu_txd->len = cpu_to_le16(skb->len - - sizeof_field(struct mt7615_mcu_txd, txd)); + mcu_txd->len = cpu_to_le16(skb->len - sizeof(mcu_txd->txd)); mcu_txd->pq_id = cpu_to_le16(MCU_PQ_ID(MT_TX_PORT_IDX_MCU, q_idx)); mcu_txd->pkt_type = MCU_PKT_ID; mcu_txd->seq = seq; -- 2.17.0