Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp880720pxf; Wed, 7 Apr 2021 14:02:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUWTmd7GDFmSTTPAm7izRsThWABwl4QJTyHDDAxKxXBD2dBm86h76xQEMKt2GlXj5wlBm+ X-Received: by 2002:a05:6402:2746:: with SMTP id z6mr6956557edd.146.1617829337472; Wed, 07 Apr 2021 14:02:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617829337; cv=none; d=google.com; s=arc-20160816; b=M7pscHjgPq51TjAs/BYOwF52eD14CHtgdF26gSfyjwDWRgicTb+/zr/O7a/keY7vUA vZxtQ65wLCImnlBIkKhEM0u24J95zeacKQFWPIUCd6wOEWEtCB6qOZ8nRcVi7ONl50DZ RfPQW4V25NfiB5C+VS54eWO8rqjj4ayqumk+JrQ5WY01wEfI/8NzrBo5V60drAYESB32 JR10k///pKxOysyry3RG/YsWHMkiphdA5GYbEgJLmAmggH9acBRA2owq/69XlFOTHVTF Dhojmbn/x2VPER2uPlZwej3L/3GYt9+EfFH3WWTqT0jdkz1zHJ+wGV9GhFF5dmIt2yGa 0z/w== 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=Txc1kWdRYk6a2hQeMj64FaQrg0Tgz5yI7LLoGGXJ7FM=; b=mnbqgqXpJQmmyzYQKa8wfpi7YwdJHDdBnxGv+qYweu2kVl6unndd5GMCTCi3rh/s7/ gJ4Kwho23UdXs1hCshNeW0z+mNOrgurRsaoWMiwc5WZpVDTyPVm7wg4lOpro8Ipg2Jon x9yxYFQR+1WY05iqJAKYDc0KL+P1elDOeEZzXPw+Zy6oYxgdJx05sPuvs6W8Nj1EqCHm PaTUY4VXRQDPsynbQbUhJwMmYF1qnZ272wBJ56kCsmt6NOxiMVShT9v/UD3DLcJX5h6t jQLyWSD0UkXJRBWlAm3wQEgi0CN77LfirNPaeDRCMwxb0gtLdgA/iO18Br1aWAKol+PB 71IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SYyiFmQp; 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 x22si4583346edq.364.2021.04.07.14.01.53; Wed, 07 Apr 2021 14:02:17 -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=SYyiFmQp; 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 S1352655AbhDGNu4 (ORCPT + 99 others); Wed, 7 Apr 2021 09:50:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347761AbhDGNuX (ORCPT ); Wed, 7 Apr 2021 09:50:23 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EDBDC061764 for ; Wed, 7 Apr 2021 06:50:11 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id p19so9069495wmq.1 for ; Wed, 07 Apr 2021 06:50:11 -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=Txc1kWdRYk6a2hQeMj64FaQrg0Tgz5yI7LLoGGXJ7FM=; b=SYyiFmQplvpRdaIsyuGVpDCawn1fixSvY/KeLfQubcw+D2cMe0Dgz3Cxf1jxlWvm41 2m6hb8RCiZe7A2lwxcAephoj5FCB3vmduKZ4BcyAtVZXNVmux8O9mMC0azCwv5+HMHNO oOarHRFhSlF44CJLLqCXoSHQmaonPQ2N6LOQX2AB+qO2YmcnwsxQamau35VU+Yk3E2qR a7bNSxYcEI74MpkbQHXXvmTepc4cjU9teQ2E0hoZEtgc5MTHFWGfRm1igAzthRYA4hT6 VdIjLNkCjlPlM31AsJS31KMPYh8JOBLpcxefcx1djkBwPD7CM5wTq3acPd4g38eHC5+J ilIw== 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=Txc1kWdRYk6a2hQeMj64FaQrg0Tgz5yI7LLoGGXJ7FM=; b=GRtcJgJ6W0wRX61o4BoI9Ai/NVZXHFvZxCFUgXZm6G0/yM+BmfBtkQviy3uq9WWyoz UnCWzBkr1hx+rtO/qIpwrvWatjz6pFgPxJvdTln41HVJEemKthiOSR5tQ9dKrq++2ACH tSgjSSQyO+rSDuk6S+a/JYniUsdU/i8ea48YKMx0OBeY8wJ5XYBIMp79VQhihzujScS+ NreivjH11wVa2XXIoeuilSJC4+OGrwbEPxY9Or8S+9ZWnC7TOnZ+t0b4Mcvtz6Koem4K qZjgL+6+64LE1KUFKUyYGr5mhnOozQ+M6S1j4qfTPliiHEKVFmGEVhAUELcZo7dX3T48 azEQ== X-Gm-Message-State: AOAM532G1YV6aoy3H3TSd+ozHegwgD0lfG/5DolAR1kRNdZqXeuJI6i6 CTdsm1EEt5bbYp1RnUDTO+s= X-Received: by 2002:a05:600c:4f55:: with SMTP id m21mr3175454wmq.11.1617803410351; Wed, 07 Apr 2021 06:50:10 -0700 (PDT) Received: from agape ([5.171.81.68]) by smtp.gmail.com with ESMTPSA id s138sm8810675wme.8.2021.04.07.06.50.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Apr 2021 06:50:10 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Fabio Aiuto Subject: [PATCH 09/19] staging: rtl8723bs: remove empty for cycles left by DBG_871X removal Date: Wed, 7 Apr 2021 15:49:33 +0200 Message-Id: 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 empty for cycles and unused counter variables to suppress compiler warnings. Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_recv.c | 4 ---- drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 7 ------- 2 files changed, 11 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_recv.c b/drivers/staging/rtl8723bs/core/rtw_recv.c index 71ec5af0455d..2d1201b70ab1 100644 --- a/drivers/staging/rtl8723bs/core/rtw_recv.c +++ b/drivers/staging/rtl8723bs/core/rtw_recv.c @@ -1454,10 +1454,6 @@ static signed int validate_80211w_mgmt(struct adapter *adapter, union recv_frame static inline void dump_rx_packet(u8 *ptr) { - int i; - - for (i = 0; i < 64; i = i+8) - {} } static signed int validate_recv_frame(struct adapter *adapter, union recv_frame *precv_frame) diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c index 2f6516283248..5d103d33a128 100644 --- a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c @@ -571,13 +571,6 @@ static int rtw_set_wpa_ie(struct adapter *padapter, char *pie, unsigned short ie memcpy(buf, pie, ielen); - /* dump */ - { - int i; - for (i = 0; i < ielen; i = i + 8) - {} - } - if (ielen < RSN_HEADER_LEN) { ret = -1; goto exit; -- 2.20.1