Commit e6712aa1 authored by Colin Ian King's avatar Colin Ian King Committed by Kalle Valo

ath10k: remove redundant pointers 'dev' and 'noa'

Pointers dev and noa are being assigned but are never used hence they
are redundant and can be removed.

Cleans up clang warnings:
warning: variable 'dev' set but not used [-Wunused-but-set-variable]
warning: variable 'noa' set but not used [-Wunused-but-set-variable]
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent dc405152
...@@ -133,11 +133,8 @@ static void ath10k_ahb_clock_deinit(struct ath10k *ar) ...@@ -133,11 +133,8 @@ static void ath10k_ahb_clock_deinit(struct ath10k *ar)
static int ath10k_ahb_clock_enable(struct ath10k *ar) static int ath10k_ahb_clock_enable(struct ath10k *ar)
{ {
struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar);
struct device *dev;
int ret; int ret;
dev = &ar_ahb->pdev->dev;
if (IS_ERR_OR_NULL(ar_ahb->cmd_clk) || if (IS_ERR_OR_NULL(ar_ahb->cmd_clk) ||
IS_ERR_OR_NULL(ar_ahb->ref_clk) || IS_ERR_OR_NULL(ar_ahb->ref_clk) ||
IS_ERR_OR_NULL(ar_ahb->rtc_clk)) { IS_ERR_OR_NULL(ar_ahb->rtc_clk)) {
...@@ -451,12 +448,10 @@ static int ath10k_ahb_resource_init(struct ath10k *ar) ...@@ -451,12 +448,10 @@ static int ath10k_ahb_resource_init(struct ath10k *ar)
{ {
struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar); struct ath10k_ahb *ar_ahb = ath10k_ahb_priv(ar);
struct platform_device *pdev; struct platform_device *pdev;
struct device *dev;
struct resource *res; struct resource *res;
int ret; int ret;
pdev = ar_ahb->pdev; pdev = ar_ahb->pdev;
dev = &pdev->dev;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!res) { if (!res) {
......
...@@ -1820,7 +1820,6 @@ ath10k_wmi_tlv_op_gen_vdev_start(struct ath10k *ar, ...@@ -1820,7 +1820,6 @@ ath10k_wmi_tlv_op_gen_vdev_start(struct ath10k *ar,
{ {
struct wmi_tlv_vdev_start_cmd *cmd; struct wmi_tlv_vdev_start_cmd *cmd;
struct wmi_channel *ch; struct wmi_channel *ch;
struct wmi_p2p_noa_descriptor *noa;
struct wmi_tlv *tlv; struct wmi_tlv *tlv;
struct sk_buff *skb; struct sk_buff *skb;
size_t len; size_t len;
...@@ -1878,7 +1877,6 @@ ath10k_wmi_tlv_op_gen_vdev_start(struct ath10k *ar, ...@@ -1878,7 +1877,6 @@ ath10k_wmi_tlv_op_gen_vdev_start(struct ath10k *ar,
tlv = ptr; tlv = ptr;
tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_STRUCT); tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_STRUCT);
tlv->len = 0; tlv->len = 0;
noa = (void *)tlv->value;
/* Note: This is a nested TLV containing: /* Note: This is a nested TLV containing:
* [wmi_tlv][wmi_p2p_noa_descriptor][wmi_tlv].. * [wmi_tlv][wmi_p2p_noa_descriptor][wmi_tlv]..
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment