Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3766800pxf; Mon, 5 Apr 2021 22:53:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwY++Ih45aAcHq2I1dfak/Jiw/ojMEkN9dDmanFz0oA0QYQW1qbhtEMw4E9MU8GY4FsChbb X-Received: by 2002:a5d:9d13:: with SMTP id j19mr22854173ioj.110.1617688402505; Mon, 05 Apr 2021 22:53:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617688402; cv=none; d=google.com; s=arc-20160816; b=Ehj6BGE3GUIEifwLF/CusiakbOUWcCmWY+7DriSWsjBJsrCwkxnXUqGOo3FQ103csu nPk5BBoqWYeH73HL1OsaDr9KJmVfQw8rwqBukK3J+q4kyQa6+IB4tywHO3ZPQdVBar9O J5Hev+tFl8UufmnF3KZx6VyI8TmlIR/bqcFU+0hve4S8gYOdZOAFHEU9psH30bH/TTYB 6S9sG5gR2bLcOAQ2QaWA0PbbH0VEdieEDfvyoRk4Pr+BkEGLSM8/J2e0t/0iBt5ENUNA zpCZGO6RuRor8q0x1IgWNbvbe416W4gIBFdfJErWp5b3Lc/3WHPPmItBxSaXglLpqox0 HtDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5lLBdOAva93h7sba5wfimP9PBGLz9NegQLKVskRq+74=; b=QsRyHP7WyL9SkfikepRjkdzPaBpKqNvBe5PVf6dhV7FkrVm4JP5b+D3UlcuJhVL7lz l8MPsbXiukKDt2tGdlo7vbAAfQ6uV7YnxgCsvCINdkeOCThfSf7Kf4cVpAVqkU6gplvw jfTA8AvUhvC+F03h8tzkS6AC7GR1+voId+SbEe3hQ/VeMbS1lzHrCrkE+RFFmfvdcPuR 55UHZbKG0bqCLcDN/U6N33hp7f4PkQHdtmQGnJqu9MVzoO/Wsh+uO+YFmLJ8jAEp4Fn5 LY1W6pZdkZ69GyPDCEvoB8YKLLVdRDhXhPNl5xFN1y/eNc4unNeIcst97XYD8ld9FG5X 6oZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KIl2NCpe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 b9si7335620ilo.116.2021.04.05.22.53.09; Mon, 05 Apr 2021 22:53:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=KIl2NCpe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S232265AbhDEQun (ORCPT + 99 others); Mon, 5 Apr 2021 12:50:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232154AbhDEQuh (ORCPT ); Mon, 5 Apr 2021 12:50:37 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBBD4C061756 for ; Mon, 5 Apr 2021 09:50:30 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id j20-20020a05600c1914b029010f31e15a7fso7886607wmq.1 for ; Mon, 05 Apr 2021 09:50:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5lLBdOAva93h7sba5wfimP9PBGLz9NegQLKVskRq+74=; b=KIl2NCpe68hPJ/Tg2SAuV1834Z/8EqBVs3S5strfFb8PuIE6j1dWKUmUbDwOegTM/L mdBvwaVm6oVXKI0t1rYgj3vozJNjV9eGds8YShhq1P/+ZykaCBcL1WCSZ2Uv2JJ3B7qh pPni2wmJvFw4+e/MYY945GlH8SnePV8hmeVbHaf8VO1AsOoy9UbJAK6e0CgypOB1j+UW /CWkC/aknl1EZk2fAneVCTLYLNWrfYO36PxEBf2nqENddLJA8MztgdnpZmu2x7cqsCeS TDcLsu4vPvRDTPWgUkOxZHRBnnYzlfq0N6GlkqpkgpWYD8mOkw5eg+TeMWhM0LTh4cSS x6Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5lLBdOAva93h7sba5wfimP9PBGLz9NegQLKVskRq+74=; b=s5vLMhpuZorwcrS5Q3HLP0H2PrYRK2Wdi42LqfTdHGhmiaXwOXNb22mYQyzO7VV74x bMtCMQhvcyiiZtrQDiPAGhOhYcaPzuszP4y3RAjTbtArdcbHKhXgxdPbWIoyJKQf1kja J506808aFNTWrwakOy6urRY0psMi6CVSxa9QCPvQdg8k3NYUkfA7OPRKpIa/F5dFyYa8 Mf/XbKAl78XXbW146FZ5E7ZoRoubpDB1yIwxo8VoeyUy88B/PXPQaLZo05VDcp48UOE4 //zr2UFcXaIpCQy7XBr9lPQogZ8SRdezfzwf/GBIJbWtEc/g2qMcGB6BKn3/gHfg5LMy T6vQ== X-Gm-Message-State: AOAM533oLen8DqV/nzxUD8fE3580+uazRoFzujIs/F6NqLcAKMpBIpA2 GcipxepbOoKmhVKdfm21owM= X-Received: by 2002:a1c:e906:: with SMTP id q6mr52738wmc.138.1617641429648; Mon, 05 Apr 2021 09:50:29 -0700 (PDT) Received: from agape ([5.171.72.58]) by smtp.gmail.com with ESMTPSA id c16sm34889822wrs.81.2021.04.05.09.50.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Apr 2021 09:50:29 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: dan.carpenter@oracle.com, joe@perches.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Fabio Aiuto Subject: [PATCH 09/10] staging: rtl8723bs: remove empty for cycles Date: Mon, 5 Apr 2021 18:49:56 +0200 Message-Id: <09875f599705d8f50af3511fa6bfaa54b9446a86.1617640221.git.fabioaiuto83@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org remove for-cycles left empty after RT_TRACE deletion and unused index variables Suggested-by: Joe Perches Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c index 4c94202ac209..eaa9f9e2e6a4 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c @@ -3466,7 +3466,6 @@ s32 c2h_handler_8723b(struct adapter *padapter, u8 *buf) { struct c2h_evt_hdr_88xx *pC2hEvent = (struct c2h_evt_hdr_88xx *)buf; s32 ret = _SUCCESS; - u8 index = 0; if (!pC2hEvent) { DBG_8192C("%s(): pC2hEventis NULL\n", __func__); @@ -3491,8 +3490,6 @@ s32 c2h_handler_8723b(struct adapter *padapter, u8 *buf) break; case C2H_HW_INFO_EXCH: - for (index = 0; index < pC2hEvent->plen; index++) { - } break; case C2H_8723B_BT_INFO: @@ -3513,8 +3510,6 @@ s32 c2h_handler_8723b(struct adapter *padapter, u8 *buf) static void process_c2h_event(struct adapter *padapter, struct c2h_evt_hdr_t *pC2hEvent, u8 *c2hBuf) { - u8 index = 0; - if (!c2hBuf) { DBG_8192C("%s c2hbuff is NULL\n", __func__); return; @@ -3537,8 +3532,6 @@ static void process_c2h_event(struct adapter *padapter, struct c2h_evt_hdr_t *pC break; case C2H_HW_INFO_EXCH: - for (index = 0; index < pC2hEvent->CmdLen; index++) { - } break; case C2H_8723B_BT_INFO: -- 2.20.1