Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp671814ybf; Sat, 29 Feb 2020 12:50:28 -0800 (PST) X-Google-Smtp-Source: APXvYqyydQymbqStQ2ODf8RIVQlaFv4pl6KV6CmW8ciHrZ2S36wbR/uUtkmCFECfUygPQHj6zGby X-Received: by 2002:a05:6808:487:: with SMTP id z7mr7300925oid.59.1583009428719; Sat, 29 Feb 2020 12:50:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583009428; cv=none; d=google.com; s=arc-20160816; b=IFz94bG6OXhjj1J0FjvfbuJ/m5BI9iIg0Ps2YSWLk4tWJXVAOPQdDarZEeerhzlNSi MkyW4Z9kN7HDeJXjh5cKjQgHtdbGvhWuMPPyHUuK+gi2k+F5xOt9RVha4nRkUsSSTgLC PiiPWLHzjxTH1qchOVAJjI9JXl/unBNguEEJZHJyxbAm0ffFZD8Z8c3gdyi/AW6EUmfK a/xDJ/iQPVKHhYa6GUv23qlZJ6It3aq4+/ecMT77jf9ONPpoUHR6bMF/LUdttiNw702v V6ZHzTf/2lsY9mJDVV1LyQPfDl8YNJP0/3xx4JXBb+xseP8KIUl3wJxeVzOFgZXFD0UY LY/Q== 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:subject :from:cc:to:dkim-signature; bh=l56A/14PXkqGHLE8YMBNeU8cv7OpOINY7Us8P01pWEE=; b=eLGMEtZkWQz7N7FWnDebXjGabSdidkSO/XWxUeAy2Ms8VKBtGpLRngVFZp6mq21ek4 YYrfmUnKDhlIgElQeVI06vBi0bhI26leplbXfWIO7mME+3VDfPeb2UkjLJXPOlo95fkw 86ROAT+8FDsrjHXRFK/hNv7KBTVMsAHRg++1dvSiHDj1kCY5Es8N5KtBM+UZu6Q+atbl e1+KjuoH98xaodfEkWTm059O0ugqdKUVRk9R6gaV95FosCIihpSpUZi7T+ybNsd4+bsw ZteMnmVv6JXNu0daKHB2vW1HQNsJahUHLrCF8xIpi+3G023Y8CGJ/m0C4ACsLrAJRito gdPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MO2KphJI; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 13si3926392oiy.28.2020.02.29.12.50.07; Sat, 29 Feb 2020 12:50:28 -0800 (PST) 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=pass header.i=@gmail.com header.s=20161025 header.b=MO2KphJI; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727412AbgB2Uhp (ORCPT + 99 others); Sat, 29 Feb 2020 15:37:45 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:45256 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727252AbgB2Uhp (ORCPT ); Sat, 29 Feb 2020 15:37:45 -0500 Received: by mail-wr1-f68.google.com with SMTP id v2so7545201wrp.12 for ; Sat, 29 Feb 2020 12:37:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:cc:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=l56A/14PXkqGHLE8YMBNeU8cv7OpOINY7Us8P01pWEE=; b=MO2KphJIj8hI5R88Gmx0Gw2qjjdCiav9FlUhpY1aqLoMGZl1QkFTGZ3iz5gffN96oU bBGNA6Z79h5IeTF1VW5ZOru6p1u50ifOp1/ticiSPwxDx7nJC/OrlxnAR9RZlXcee85k u+Mz8/012JjFwXBcRPsxZ3sol82QY/iAZblG4KzlTTwil9ECebkMrs7WenJ9gOsENb1P j+ruhdDbP826ZJ9w/llk/VXDqW/gDWmiz7lcXDfh+3NfcEIgJ1fGWaVPB49LiI6vdWno FMKbVYUoHrbFz6qnZz9PZk23lnHVb4pSElMS/bfP/4g6H7URw+dWybdfIZzt+CNnLHo1 B3Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=l56A/14PXkqGHLE8YMBNeU8cv7OpOINY7Us8P01pWEE=; b=lwHMsAl5c4SPkM+GzCR+O2ZuOepXUuHiBUNKJAE0AgJY5YuJaBPzD9t1UiAeBi1CPQ n7puUljcNYavX15an9hvSwnwCRPmx5ZMQ2PBLImpjKbuK0oTFdp1esb6+IGmJqADNmhR DVS5VNvnIUAdF9vcmOe/U0YRQen64hmoxERN1VdlMZH0XigZCYIQdOJ9UH9SJz0XlNzB ReFma56WJ6LewTbZCWq4M734r7/rXmidqWcKDauqoW2ki4bnUAQSJwbbfZvX4qoidK02 XteR8Zsg0ZtC6UcEtli09Sh9HtF8JwHVkinEdfDkNLCcQdzZzU2+2ZCAW0L7gq3yaAKS ZxhA== X-Gm-Message-State: APjAAAXEVoM0ibVOCWZNrTgHKerLM+RhbnOxCyfC3/ez8rtGmWU1L5sZ ZfcbRwrYpkRRea94BRRm46wri3As X-Received: by 2002:adf:de09:: with SMTP id b9mr11826474wrm.160.1583008663505; Sat, 29 Feb 2020 12:37:43 -0800 (PST) Received: from [192.168.43.18] (94.197.121.166.threembb.co.uk. [94.197.121.166]) by smtp.gmail.com with ESMTPSA id b186sm7771432wmb.40.2020.02.29.12.37.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 29 Feb 2020 12:37:43 -0800 (PST) To: Greg Kroah-Hartman Cc: "devel@driverdev.osuosl.org" , linux-wireless@vger.kernel.org From: Malcolm Priestley Subject: [PATCH 2/2] staging: vt6656: vnt_vt3184_init remove stack copy to array. Message-ID: <49f34764-c90c-8c5f-b4f2-a3668b13e519@gmail.com> Date: Sat, 29 Feb 2020 20:37:40 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 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 use u8 pointer addr directly and remove stack array. Signed-off-by: Malcolm Priestley --- drivers/staging/vt6656/baseband.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/staging/vt6656/baseband.c b/drivers/staging/vt6656/baseband.c index 48a624bf00c0..74b620b4261e 100644 --- a/drivers/staging/vt6656/baseband.c +++ b/drivers/staging/vt6656/baseband.c @@ -367,7 +367,6 @@ int vnt_vt3184_init(struct vnt_private *priv) int ret = 0; u16 length; u8 *addr; - u8 array[256]; u8 data; ret = vnt_control_in(priv, MESSAGE_TYPE_READ, 0, MESSAGE_REQUEST_EEPROM, @@ -437,10 +436,8 @@ int vnt_vt3184_init(struct vnt_private *priv) goto end; } - memcpy(array, addr, length); - ret = vnt_control_out_blocks(priv, VNT_REG_BLOCK_SIZE, - MESSAGE_REQUEST_BBREG, length, array); + MESSAGE_REQUEST_BBREG, length, addr); if (ret) goto end; -- 2.25.1