Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4783966pxb; Tue, 25 Jan 2022 19:34:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJy/04UwyK/XSijjuc4pNIRzxoLWWmyGUZgMAmbTdgNUSEFmiZroc4m5OsfgVvaOLUFpocXp X-Received: by 2002:a62:dd56:0:b0:4c7:8603:3ffe with SMTP id w83-20020a62dd56000000b004c786033ffemr18233637pff.15.1643168089558; Tue, 25 Jan 2022 19:34:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643168089; cv=none; d=google.com; s=arc-20160816; b=n8Jvb3KFhaotRUBuZJGFjP08oojayqzzcpK/PgIzUQNZ8oaIcvy2zNKsHWZaOHOOlu U589aF2yItbDN0cz5SP/25sas92VL6sVvKO0Hecm6MQPk6HfLNFUwgsxpcb0ZdZeeJaq aBw8hj2Pwy92Zn3UDlUb+l84zv24P85iueaTCDUILCLy4SCvts2I+/CC5M8RGiRm8dbC zjQVD2fUTmcqRuFP0eO2nO8f46vKhZKtITSkIysSI1Pe/Wt+XaeKjoE0+kx5w6uTm41s BR508OCcDxkflPYeJ30y5NTE6czZfT3UhLTya4CxxI4fVl7AIKe/4jQFASZXKnLAyaw4 0BwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=OlIBnpkTLBL6sH3W/KXcb2UEgw4pfOFIKhtFEyjrjXg=; b=lZxykbtg1Ot5jxfnFLjvDYFx0WT/Dy6+xFxkQABi1/fClf/SpmVwQbSVg6coQohAno dg5jYoWp/reoNJESZbl2bEG062xetKiOR5AyRHTGci9QQVq+BoPadoxMUvsvdo3rus/N QRozGs3oZk0M5L37veMUZE9moYJZtcDbWsTegoOggWp0VyisXUF3W1kFCJ5WOUtrAmos xn88MlbcS0emkLLlWB3RjJwfy26cj+sVFFo7sdqiD7YJKS1aiM1pkeRr9djF5X8f4lp/ ENC+SDO8Sg/UfMqRrr1b+hT2GZb8Cajw/59wMS+n/tN8MUWxrgqa7xHJ9+Uqc3LWa6DN jmnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=FHIOwTMr; 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 j22si18407595pgb.609.2022.01.25.19.34.12; Tue, 25 Jan 2022 19:34:49 -0800 (PST) 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=20210112 header.b=FHIOwTMr; 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 S232412AbiAYScA (ORCPT + 99 others); Tue, 25 Jan 2022 13:32:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232107AbiAYSbb (ORCPT ); Tue, 25 Jan 2022 13:31:31 -0500 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5567FC06173E for ; Tue, 25 Jan 2022 10:31:30 -0800 (PST) Received: by mail-lj1-x22a.google.com with SMTP id j14so16487685lja.3 for ; Tue, 25 Jan 2022 10:31:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=OlIBnpkTLBL6sH3W/KXcb2UEgw4pfOFIKhtFEyjrjXg=; b=FHIOwTMrIgkrHCmEbk0yOERz2+rKuWBQWNsU9Bdktyt5XpnW0LjleS/S/XQi8l6uGt 03IeHKCGxGw3Z2tJ+ssmZQ1cYVVmWjsy1nkE+VjZ05Z2g72yZzSO71lefk/36q2L6mzr xTIGThNJw8EZz6dd2bLNK4Ff0Ldq05vSwJfrqAbSZZC9ZiVSDst1JBVgRK8NzvPmeesx wS5tJg+xaEBIZvhZjhW09UY20gQwlM5hTIMMfQsZ3dAwsXcoXPosqfRdPTez5qd4bwnb ZAeTPRaeVVKnqOQ17BoV5KavTeCb+WralSZgGk2fkjEpIpHBTAQnaRlVZxtBzSzEFJuz PQ1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=OlIBnpkTLBL6sH3W/KXcb2UEgw4pfOFIKhtFEyjrjXg=; b=uP4hvTeUAh8rCZ7nsX0KUDPrjSGpL7HYL7/Fh9YdTgy3IZw8AgHtfl+J7hf6j15YPN gDwVEb4G7DY1B5ptHLnkVTWOPa2gZOnVfPa3QXhiMTJxa4lGS2om063udud9K8MaNNCc D3QF2aXmTds5oguSwe8XsolgW7EYfscAiln9eb4OfSs530Xy5RiCyRq0Di46Cteg0hio U4hta8IOwOMdHQ7+lmg6r8dGYddmwrbYoN6wIYd43JBd+D5+bZ0Saok87zJpTFmR3frN +UFmC3qCN9ckZ79NWh8JQ29t/1HsQNZ/zsO0+zLQKJMMjvpYQQSG2666xxC9Oim3IpOE 3eYQ== X-Gm-Message-State: AOAM533kIJqjdOxRg5gBeg3Z8ONYu6RDLVkgcvAxzTQdjKZfUR+W0dzu R/Lh9ZToEfVomEPwbyaouSM= X-Received: by 2002:a2e:80cb:: with SMTP id r11mr6131870ljg.359.1643135488614; Tue, 25 Jan 2022 10:31:28 -0800 (PST) Received: from [192.168.1.11] ([94.103.227.208]) by smtp.gmail.com with ESMTPSA id h6sm490020ljg.58.2022.01.25.10.31.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 Jan 2022 10:31:28 -0800 (PST) Message-ID: Date: Tue, 25 Jan 2022 21:31:27 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH 03/10] staging: r8188eu: remove DBG_88E calls from core/rtw_mlme_ext.c Content-Language: en-US To: Phillip Potter , gregkh@linuxfoundation.org Cc: dan.carpenter@oracle.com, Larry.Finger@lwfinger.net, straube.linux@gmail.com, martin@kaiser.cx, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org References: <20220124224415.831-1-phil@philpotter.co.uk> <20220124224415.831-4-phil@philpotter.co.uk> From: Pavel Skripkin In-Reply-To: <20220124224415.831-4-phil@philpotter.co.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Phillip, On 1/25/22 01:44, Phillip Potter wrote: > Remove all DBG_88E calls from core/rtw_mlme_ext.c, including the commented > one, as they do not conform to kernel coding standards and are > superfluous. Also restructure where appropriate to remove no longer needed > code left behind by removal of these calls. This will allow the eventual > removal of the DBG_88E macro itself. > > Signed-off-by: Phillip Potter > --- [code snip] > static u8 chk_ap_is_alive(struct adapter *padapter, struct sta_info *psta) > @@ -7141,18 +6905,11 @@ static u8 chk_ap_is_alive(struct adapter *padapter, struct sta_info *psta) > static void rtl8188e_sreset_linked_status_check(struct adapter *padapter) > { > u32 rx_dma_status = rtw_read32(padapter, REG_RXDMA_STATUS); > - u8 fw_status; > > - if (rx_dma_status != 0x00) { > - DBG_88E("%s REG_RXDMA_STATUS:0x%08x\n", __func__, rx_dma_status); > + if (rx_dma_status != 0x00) > rtw_write32(padapter, REG_RXDMA_STATUS, rx_dma_status); > - } > > - fw_status = rtw_read8(padapter, REG_FMETHR); > - if (fw_status == 1) > - DBG_88E("%s REG_FW_STATUS (0x%02x), Read_Efuse_Fail !!\n", __func__, fw_status); > - else if (fw_status == 2) > - DBG_88E("%s REG_FW_STATUS (0x%02x), Condition_No_Match !!\n", __func__, fw_status); > + rtw_read8(padapter, REG_FMETHR); > } Unused read. Can be dropped With regards, Pavel Skripkin