From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37C96C433F5 for ; Sat, 18 Sep 2021 17:32:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 07404610A4 for ; Sat, 18 Sep 2021 17:32:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238354AbhIRRd7 (ORCPT ); Sat, 18 Sep 2021 13:33:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235684AbhIRRd6 (ORCPT ); Sat, 18 Sep 2021 13:33:58 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39D6FC061574 for ; Sat, 18 Sep 2021 10:32:34 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id w29so20633804wra.8 for ; Sat, 18 Sep 2021 10:32:34 -0700 (PDT) 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=UVE7QZS3RWL2QAHWQXoCR4muirEC/eJJlq5hFMqUVLk=; b=atis6OazR0/togfP8brQNQvC7+QKZJNyciGtQ1X6sWCGSoMGn3KhPptr4NAG5oEbIY 48pfpY+T1gjwiG0yc/zOCLIjHf6crzb74w3tnxuSeaiV4+8kiqQT50jZZgeRVEPTezHa ga2O4V/hCOsB8OJ6wn2xKrHmLRhmBTU4/1hhxiCL5c/6yb1/21Gxi6kGT6YNFjRZN0UA bvjGcGmCmip9IZZ2nEn9SCWSTOQMxU43aF949F86t4RBQBww4OzLpL5aiEK4kGc0yja4 Ova/NKGpETJ5RNGnCzyw3EL1IXP6Nn4LPu05dsGtCIwv/A745+HJkL5JMBAUL0ShjbUM 5QyA== 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=UVE7QZS3RWL2QAHWQXoCR4muirEC/eJJlq5hFMqUVLk=; b=O7xjyHt8SidUFmWIZatPy3MYMC1zZqn3G7y+pcbXy13rhROI3DqVC0mLWG9N4JeyVv Pph8hQarXdzwq1qn6nTzfBhveiKyY6cSIbQOORsXQw323AOK9U0fq16ho9WMFqBpYELo UsAXO8CcSO/TY6HtldgHfs+5Lc4YpFE+2PP7MbihZLUB5NsWMN5Hl9Qtpvm0AbcIhJ3s 9+ipV0b3ftLFA3w1AFMcMx+i0XVB9q46G7Y40OwO5dWUGd5XoWqKx6DrkhlKhMKZwhlq GXbosCmrqmsChR/+WEn40br205zsYmEV8VMdPSBmkTJXHM4tTHKx0bVHe7mQtFrymRqo j9Bg== X-Gm-Message-State: AOAM530l6cHG756V3upBmO4j+csT2p2B8tH25I6vq1y762GedRiI6cIY k/XRfgnPHWJYzCSXFpYn9hyN5a16wH4j9w== X-Google-Smtp-Source: ABdhPJzm4XHTg1a0lmsW83bFN7OND2/M9x4+Hk9byAK+hB1rOZd7kgeEwxm1M/bXqM1ufTYwwG0x4A== X-Received: by 2002:adf:8170:: with SMTP id 103mr19241290wrm.167.1631986352831; Sat, 18 Sep 2021 10:32:32 -0700 (PDT) Received: from ?IPV6:2a02:8108:96c0:3b88::cde? ([2a02:8108:96c0:3b88::cde]) by smtp.gmail.com with ESMTPSA id y64sm7475517wmc.38.2021.09.18.10.32.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 18 Sep 2021 10:32:32 -0700 (PDT) Message-ID: <0701af92-b341-f7b0-8a0c-3bea8a69f580@gmail.com> Date: Sat, 18 Sep 2021 19:32:31 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Subject: Re: staging: r8188eu: Can odm_DynamicTxPowerNIC() be removed? Content-Language: en-US To: Larry Finger , Phillip Potter Cc: Greg KH , "open list:STAGING SUBSYSTEM" , Linux Kernel Mailing List References: <7f1c135a-d85d-d271-f315-d665a5fe1472@gmail.com> <89d9424a-d792-633a-d8e8-cebe7c3a2e20@lwfinger.net> From: Michael Straube In-Reply-To: <89d9424a-d792-633a-d8e8-cebe7c3a2e20@lwfinger.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/18/21 18:46, Larry Finger wrote: > On 9/18/21 08:31, Michael Straube wrote: >> Hi Larry, Phillip and all. >> >> While removing code that checks for the chip type I stumbled upon this: >> >> >> void odm_DynamicTxPowerNIC(struct odm_dm_struct *pDM_Odm) >> { >>      if (!(pDM_Odm->SupportAbility & ODM_BB_DYNAMIC_TXPWR)) >>          return; >> >>      if (pDM_Odm->SupportICType == ODM_RTL8188E) { >>          /*  ??? */ >>          /*  This part need to be redefined. */ >>      } >> } >> >> >> (pDM_Odm->SupportICType == ODM_RTL8188E) is always true in this driver. >> Currently the function does nothing and the driver seems to work fine. >> Because of the comment I'm not sure if the whole function can just be >> removed? > > Yes, I agree. No later driver does anything with this routine, thus it > is dead and can be removed. > > Larry > Ok, thank you. Regards, Michael