Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2028719yba; Sun, 5 May 2019 20:46:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGWD5M+MNTOXeXWtIoq3zWznEDlQEYJHjXW7z8LxXxiLFVFFxYnGP9c9cNWRBH6QT2wY1g X-Received: by 2002:a65:63d5:: with SMTP id n21mr29878198pgv.330.1557114389514; Sun, 05 May 2019 20:46:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557114389; cv=none; d=google.com; s=arc-20160816; b=P4OJ2srpMx+39fMOrfD2Elabkr9KsSu0eisg54dzf57V9anXUfv1RfmGXgs+7+gC0l 7BKIOU0v7zvfr5wgdXX5rYmLvcY6/INMJZXlrW+OXjGK55pwqniyqvkz4K854FnE9p0B TDb2lS2+ljQnZpcC0yhpn/M00ZK3LD3Q9qHxwue/k5D9KS14SNRMlWEGI5liQy7Xg/it yuckZo2yE7kZKFV3xZMDZXN4LJaA+N2kLgWkN8GLgz18b6isVzquRjQNht2wMJFT5+EO rGgIKY9B22eACFYJwF0MdTI39B5MYZ/w7gL6/3UnM1TuxEF5j8IDxsvcG+TM1w5XgQT3 rHQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:authenticated-by; bh=USwxEgsF4vL7AIZ14+FvddFI21Qmox5hbHuh1xEuE48=; b=KHtagWCzNozDOdO0PKc94FdPgRHcLPb2L3qhsWd6X8CNX123NGL2ongkYVNZ/Q+hzf 4C4a+fQ2isHhOycl3npTFKLpDg+A9uvN+D/v+LaTK9z09+5hG8YMW5ZqJqayk+/UqnJD Fh6vfaxuaHYwQXkEXvzLVZnu4gobmRExUsHWS41WkwDKUVv9aUfVH8XAgdoHrl0vyFwC jQeXptEpiAUk2JlrbB1zJ+f4vi22kWq4pMR6db0jr8nSZUaLPn+bRw9426Q9+hGUqNN2 op6DTvGQi4IDrhOxIHPYFzD6pOyLNXKgOqdaVwjDwILjQRzHyKUlScR/nclOlLeErl6p pEFQ== ARC-Authentication-Results: i=1; mx.google.com; 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 d24si1882145pgm.405.2019.05.05.20.46.00; Sun, 05 May 2019 20:46:29 -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; 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 S1726149AbfEFDm4 (ORCPT + 99 others); Sun, 5 May 2019 23:42:56 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:36894 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725813AbfEFDmz (ORCPT ); Sun, 5 May 2019 23:42:55 -0400 Authenticated-By: X-SpamFilter-By: BOX Solutions SpamTrap 5.62 with qID x463gkF2025562, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtitcas12.realtek.com.tw[172.21.6.16]) by rtits2.realtek.com.tw (8.15.2/2.57/5.78) with ESMTPS id x463gkF2025562 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 6 May 2019 11:42:46 +0800 Received: from RTITMBSVM04.realtek.com.tw ([fe80::e404:880:2ef1:1aa1]) by RTITCAS12.realtek.com.tw ([::1]) with mapi id 14.03.0439.000; Mon, 6 May 2019 11:42:46 +0800 From: Tony Chuang To: Stanislaw Gruszka CC: "linux-wireless@vger.kernel.org" Subject: RE: [RFC] rtw88: fix subscript above array bounds compiler warning Thread-Topic: [RFC] rtw88: fix subscript above array bounds compiler warning Thread-Index: AQHVAabY923e3mCnuUOdIndDOImdQ6ZZS4jA//+BWQCABKn1AA== Date: Mon, 6 May 2019 03:42:45 +0000 Message-ID: References: <20190503115333.GA23109@redhat.com> <20190503122426.GA4423@redhat.com> In-Reply-To: <20190503122426.GA4423@redhat.com> Accept-Language: zh-TW, en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.68.183] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org PiBTdWJqZWN0OiBSZTogW1JGQ10gcnR3ODg6IGZpeCBzdWJzY3JpcHQgYWJvdmUgYXJyYXkgYm91 bmRzIGNvbXBpbGVyIHdhcm5pbmcNCj4gDQo+IE9uIEZyaSwgTWF5IDAzLCAyMDE5IGF0IDEyOjAx OjA1UE0gKzAwMDAsIFRvbnkgQ2h1YW5nIHdyb3RlOg0KPiA+ID4gU3ViamVjdDogW1JGQ10gcnR3 ODg6IGZpeCBzdWJzY3JpcHQgYWJvdmUgYXJyYXkgYm91bmRzIGNvbXBpbGVyIHdhcm5pbmcNCj4g PiA+DQo+ID4gPiBNeSBjb21waWxlciBjb21wbGFpbiBhYm91dDoNCj4gPiA+DQo+ID4gPiBkcml2 ZXJzL25ldC93aXJlbGVzcy9yZWFsdGVrL3J0dzg4L3BoeS5jOiBJbiBmdW5jdGlvbg0KPiA+ID4g 4oCYcnR3X3BoeV9yZl9wb3dlcl8yX3Jzc2nigJk6DQo+ID4gPiBkcml2ZXJzL25ldC93aXJlbGVz cy9yZWFsdGVrL3J0dzg4L3BoeS5jOjQzMDoyNjogd2FybmluZzogYXJyYXkgc3Vic2NyaXB0IGlz DQo+ID4gPiBhYm92ZSBhcnJheSBib3VuZHMgWy1XYXJy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