Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp337180pxf; Thu, 1 Apr 2021 02:26:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvXj7YTSxgMXFC+OQ+pKWXTnxR10i3M/2RDaFJUbfl/HgwUv6l0Fd+uLv+6rZWNOawFGsj X-Received: by 2002:a17:906:8147:: with SMTP id z7mr7805264ejw.436.1617269184338; Thu, 01 Apr 2021 02:26:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617269184; cv=none; d=google.com; s=arc-20160816; b=onHn9YmezT+akgOSXJsOYwaFwfOTrYSCkUhVaYMwd9eEAPem7RwXlOmcflB9YOjoJ/ wUoIUE5MVWU18f8JW+wPy0DhU4DeW+M7OJkGRjP5RxHhPIEyWnufeCGvJbis6K2ww59/ Rv+Z2QLGAuUS/RWlR9llsyaacrosClnTyAWR4rRosO4VkCM3IQedl31eMgjEWp6gcKz5 t/Rnc04K7Ql2mjgL+GdUfSEnS5LDMeJ1ExqfU/AC20ovmkOCRJCy6yA8yv9KZJ5ab9KL PVu8dOuzk/RtOfaqNPPH8giYuAGoI2xddOehuMKShoz3xYXPjWRlmV3dFR35T70QcauT nPQQ== 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=hM+Yde17Zdskg7zytVje3fm23lmUvElHVdMsmjIgn/U=; b=bQ5gQ2sa2OsKBCA3p06ACLDHKgrG1mS3tXhA8TO0WveStCpmAZMFMZTMKF8C47WGX7 ovvMevRTRhEr0yP2MjgCHMVZbXMtyHoZqN4NVlY+pkmcoT9Zk1EmW1ghExItDeaQk4yZ AcFFTRaWE7EFBDnnQfIQF3OyNrvChyCI50htp/6mayvSPv4bB+WWE4y/1aTV6mJnSw/q Dib8JywMbkHf8kqQjBPO6+sO3qO/03ZvQktZLKbPLfufj/2Mp+hVOJm4o4M33ThboQO8 fy3oDYk3LHhT1yORpIo6vmmb7xfHaXoudgdhu6lgankZl+aWR7d9/GW0NR9ndN83rIZ2 gm4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PyxaMyX+; 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 cq5si3858011edb.98.2021.04.01.02.26.02; Thu, 01 Apr 2021 02:26:24 -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=PyxaMyX+; 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 S234271AbhDAJW7 (ORCPT + 99 others); Thu, 1 Apr 2021 05:22:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233783AbhDAJWL (ORCPT ); Thu, 1 Apr 2021 05:22:11 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AC0CC061793 for ; Thu, 1 Apr 2021 02:22:11 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id e7so1136409edu.10 for ; Thu, 01 Apr 2021 02:22:10 -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=hM+Yde17Zdskg7zytVje3fm23lmUvElHVdMsmjIgn/U=; b=PyxaMyX+0l6pefqOOZhM2RfksB7zsbY+16qwKPV3O4BSMwf57q/eruJNE9Nh13KOkE 9HHAiFNPrZx2UgHpG4x+t151H9FsyrXcViAbysVXpGxbaMCNlJqTcB3V1FdrQy2DYiF7 mYYHIQgzLfrxhU8kfkmJw+idBcdNTfh8H9QYHiB1BANGJP6XkFSoEyl7S/sjpx8ohYso 12UnCJTVOp8dHEUUZKe5hpRXfnsIi15M5W+uzMnTVTPtZtRcfZPHUEcMbw1Q9sleQba5 J0FNoTBw1Uad+3KT4GrSURR2vGS24a2+KS+R2HrngrQOpjX6UeyxMtugAKoFApfVldlw dvBg== 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=hM+Yde17Zdskg7zytVje3fm23lmUvElHVdMsmjIgn/U=; b=fccCDR3R6uhsyd8+F/VUeEq8pXbEs2Xl9ejQByVArM6VRus2JlXLX32MLaJ9iMqlum dBW7z9bFP1U7Hj5VapsJeoUM07yp+mobJtH5QVCQHFvC3zOUc/mfKIbJ+wAb9JtnbfAQ 0T0zJ5kzMtqh3w1YjIUsMLkl5/RVNZOe/dr6wO2Mj1ys6Ji+I3P4kBAzZHlj56QrAbXp 7LUmRNSJbrHONjpSjuSwNxMP0DdF1lD/cOtyLh7wiidtuK/OsEl4Wr8v4bmfkQ0ubna9 HNepdxs1g7cjB572SYtZzR1EKAXn4lMats5sqQgRlnHf3G0ClUSoi7lgpwOSqkrZ1lTy LLEA== X-Gm-Message-State: AOAM530tn8p+Cd1a8QlA+puHWxrhcvmcQSkgcAarSZ6La8bIkW+YKla3 VJYg5j9RoZQCM5KGajJlA2rwbjgRuPqRJA== X-Received: by 2002:a05:6402:3592:: with SMTP id y18mr8594052edc.360.1617268929876; Thu, 01 Apr 2021 02:22:09 -0700 (PDT) Received: from agape ([5.171.80.247]) by smtp.gmail.com with ESMTPSA id p3sm2538709ejd.7.2021.04.01.02.22.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Apr 2021 02:22:09 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: joe@perches.com, dan.carpenter@oracle.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Fabio Aiuto Subject: [PATCH 28/49] staging: rtl8723bs: remove empty if blocks in hal/rtl8723bs_hal_init.c Date: Thu, 1 Apr 2021 11:20:58 +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 if blocks after RT_TRACE deletion Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c index fbc6ef0cfe0c..df15b9c206f3 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c @@ -64,9 +64,6 @@ static int _BlockWrite(struct adapter *padapter, void *buffer, u32 buffSize) blockCount_p1 = buffSize / blockSize_p1; remainSize_p1 = buffSize % blockSize_p1; - if (blockCount_p1) { - } - for (i = 0; i < blockCount_p1; i++) { ret = rtw_write32(padapter, (FW_8723B_START_ADDRESS + i * blockSize_p1), *((u32 *)(bufferPtr + i * blockSize_p1))); if (ret == _FAIL) { @@ -82,9 +79,6 @@ static int _BlockWrite(struct adapter *padapter, void *buffer, u32 buffSize) blockCount_p2 = remainSize_p1/blockSize_p2; remainSize_p2 = remainSize_p1%blockSize_p2; - if (blockCount_p2) { - } - } /* 3 Phase #3 */ -- 2.20.1