Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1259799ybk; Thu, 21 May 2020 02:33:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGHmF/d4l/Mb9UBLd0XJPxBFyI3WUJ4u6qQwRhCWn3lLArzhGaS0d/yzeuU2N9ZcLdGqS1 X-Received: by 2002:a17:906:148f:: with SMTP id x15mr2570822ejc.85.1590053593880; Thu, 21 May 2020 02:33:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590053593; cv=none; d=google.com; s=arc-20160816; b=lvkzwCD0pm8DWrcWjVe5c+j4y+VFNV1r0mAP6vg9nJmcePFpFYEHaCODjD+d3ci3nM vatG15ekc2AIJXoom3pis3d6n7gjZpbXH4dGrQJus8nn7JmYqBj/n1vptFOjb2Eaqd7X 34WOzZvE0AajkaGOqTdfo9gEqYW259ZR2kDbbnXoAeee/Bn0O51FlIxfvXkTeUtousB/ FFy9atWW7nM3bh5Oq4OEfqhOBF+FOE0orr9fFe2F91Esp5lCYgg7SWJawXUb2i6rslRB j9LqMwCzlo+bRRLmJ0pUfq6qrZnRgHf2HlnnFIeAGMYTApbSvJAT/WysyDBN3eqXgsgZ IYRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:cc:to :subject:from:dkim-signature; bh=8Xy4F09kjG4qIrtXe0CxsoffCIloB6B/lxDeVupgx+c=; b=URSTTLgsuzr890xdExrqNfJypLb5XBQSYIhWlKOQJIridfU/EY6FejtLsI5209vTKa h6pixYtCIx3xlAyxCy+gODZaS2DMzJdb/tMLjbkfrogrn6kCne9CxKw01VFZkF0purtN cZsPjGe1n639Dz28RawYKEhqTR9dCxgj68fm58Gkz9ZoFhS3uvGDLN1Mved4yGG2sRfT XQTe54t0GcV7t09wDwWQE4iBdDpwQuHO+mQNdknuQLtP8qaCdZhXP4UQ+P/hDPoU/kQL 5v0a8d8hOiwgXFgmrXla7j/2G4U9c6Wx6J1QCaV19f72/AF5nDhHgLk3ZJKfMxKLcgqU atPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WOMHCO5r; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d10si2810618edx.506.2020.05.21.02.32.49; Thu, 21 May 2020 02:33:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WOMHCO5r; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728820AbgEUJbk (ORCPT + 99 others); Thu, 21 May 2020 05:31:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728704AbgEUJbk (ORCPT ); Thu, 21 May 2020 05:31:40 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9DAEC061A0E for ; Thu, 21 May 2020 02:31:39 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id g12so4780252wrw.1 for ; Thu, 21 May 2020 02:31:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=8Xy4F09kjG4qIrtXe0CxsoffCIloB6B/lxDeVupgx+c=; b=WOMHCO5r/+JSEOLRQoG3VeYHZXyajd4nIwrHzdZTMVxYgAVcJtB05oRN/b7D3TolcF uxhlTyhchzznNp8zN1t0/ne9LK1wzUoU5Pja8+R89KkeL+ZkrcNJa9pB9nxL2QCHygXk aKeW5qI5OhqFMMjcfYSfAXZnhGLfDsLFyvcHjUs9gb2PAbBh6ZcdG3jiujodbAQPlKXu MCowsC4d/ZAMmETSsVaQ/Yeil47+p6EZT2su6Up/Xt5gGi0GqaEBTXaXahHkDUe+I4Oq bpRN1Z3SWe3uQkQ+GD3ndyhBPGXvMzL0EtZ36BLKvmLkW0NHsttmlEml55oRnI9UD8EQ Axqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=8Xy4F09kjG4qIrtXe0CxsoffCIloB6B/lxDeVupgx+c=; b=VZhfBMNwITunLjRyeLdXG7AWjBcjb7qQiwnA4EtiEl8YuDt/2OOXrTIu2FtBM+SEY5 q/WdU/uacwX7rVM/MPONn6swkj0SRuw49P0iFOJJv+xZf7SzZxHq37zHAuIu93zmJObJ yD7h4pr0ETh4jAtvUQ5/6mPJaH9TdZq1dQXoneeLoSvz1EqoVueNlDPzFncjXcN5bcT0 b+S62elH7eHBDhtTfa4MEyWgTEYPF+vCoUEwqDFpnIJJOM8bL2mMMvTX2wAXDpofDI1f 0qcKsqd30iNnizlmc/CfUSfW/0I8kAxF7DBrR9u+yZ5g+VN9Os1VKQs2wsvr7VVoJHUR zg0g== X-Gm-Message-State: AOAM530bzfj4VgfZPeK59xdlVI4+jL1fMpwZhpq9oqErFY9bHphD9AOC C+f+EPOtWGaoy7xS+8gs80GTDlfSl0iaYA== X-Received: by 2002:adf:a15c:: with SMTP id r28mr2922817wrr.337.1590053498236; Thu, 21 May 2020 02:31:38 -0700 (PDT) Received: from [192.168.43.18] ([85.255.237.70]) by smtp.gmail.com with ESMTPSA id g69sm929660wmg.15.2020.05.21.02.31.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 May 2020 02:31:37 -0700 (PDT) From: Malcolm Priestley Subject: [PATCH 01/10] staging: vt6656: remove ieee80211_hdr from vnt_usb_send_context. To: Greg Kroah-Hartman Cc: "devel@driverdev.osuosl.org" , linux-wireless@vger.kernel.org Message-ID: <556fab01-aa1e-154e-149e-c04feeb76efa@gmail.com> Date: Thu, 21 May 2020 10:31:36 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org It is only used in one place were it can be pointed to at skb->data. Signed-off-by: Malcolm Priestley --- drivers/staging/vt6656/device.h | 1 - drivers/staging/vt6656/rxtx.c | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/staging/vt6656/device.h b/drivers/staging/vt6656/device.h index d1b19dcaf991..0486aabba061 100644 --- a/drivers/staging/vt6656/device.h +++ b/drivers/staging/vt6656/device.h @@ -238,7 +238,6 @@ struct vnt_rcb { struct vnt_usb_send_context { void *priv; struct sk_buff *skb; - struct ieee80211_hdr *hdr; void *tx_buffer; unsigned int buf_len; u32 frame_len; diff --git a/drivers/staging/vt6656/rxtx.c b/drivers/staging/vt6656/rxtx.c index 8f9904c8045c..a47f42bedfa9 100644 --- a/drivers/staging/vt6656/rxtx.c +++ b/drivers/staging/vt6656/rxtx.c @@ -73,8 +73,6 @@ static struct vnt_usb_send_context context = priv->tx_context[ii]; if (!context->in_use) { context->in_use = true; - context->hdr = NULL; - return context; } } @@ -392,7 +390,7 @@ static void vnt_fill_txkey(struct vnt_usb_send_context *tx_context, struct sk_buff *skb, u16 payload_len, struct vnt_mic_hdr *mic_hdr) { - struct ieee80211_hdr *hdr = tx_context->hdr; + struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; u64 pn64; u8 *iv = ((u8 *)hdr + ieee80211_get_hdrlen_from_skb(skb)); @@ -544,7 +542,6 @@ int vnt_tx_packet(struct vnt_private *priv, struct sk_buff *skb) tx_context->need_ack = false; tx_context->frame_len = skb->len + 4; tx_context->tx_rate = rate->hw_value; - tx_context->hdr = hdr; spin_unlock_irqrestore(&priv->lock, flags); -- 2.25.1