From patchwork Tue Feb 21 20:52:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Hortmann X-Patchwork-Id: 5702 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp217647wrd; Tue, 21 Feb 2023 12:55:49 -0800 (PST) X-Google-Smtp-Source: AK7set+f/D1JLVMU2Lgqx8HYHuLKtuWF4Q5J3yWakZuR8ud77ClwX0EE5nq63sXeyZxM6rLOky4l X-Received: by 2002:a17:906:c309:b0:8aa:bea6:ce8b with SMTP id s9-20020a170906c30900b008aabea6ce8bmr11501441ejz.53.1677012949478; Tue, 21 Feb 2023 12:55:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677012949; cv=none; d=google.com; s=arc-20160816; b=NMHKAB0U9P3ncTIGUoEzPwQPlWPOPQ2aXqTZsQL8QwrAfAB6ns0Gjb3kDz8OjAg6VS C6s3dJVUwGA5Vxo6UWFtxveOD4h3XnH/fG7XNkFgt1lulH15nM8NaKXNuBjiqAYYYT9T s+vzREzlXd8um1pYK4IvWC4WYeMnyn2TyuvmYo8vuPs1sZ3LRRd+w58k/pWsIgg5n7we 3PNqc74MiZif7f+WS+MhPlVyJza3+eKLNtGky0hybozzWlI7Bpwn4bKI4TkJQohp70mk ywYL4dC3sGfqvhY6neKKRgzEXf0ElmoK0l2qme1c1DLJGipDurHtbADw1chfp+9x/yto jvRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:to:from:date:dkim-signature; bh=ME8MmTL9+xojo7h0KQk1KDfx29xTX9q7Bc+zC3HoTX4=; b=JPeZzJB8u4z39aVOTNwHyrYFBfss3+Z9CJOHgjor35PgIBdjnJL+P+yqsNSoKFFW+v 5NtJRq7b3alZUoOXZZwQctWD45Vdu4Le5ijcjqN/GMJK/gJPH5kFYSmrVkNJDmfl7JsU gKN1ZkiS4iBT6SZS3dZAB9fWUNcK0tc9jRpHjBfqZi8YaLC5Riw9PATXK4474FbXyQhb 3zLs8FGojohlA+XXmtR2xdAcMhiAgjkYC1tc2Keg9fFbp/XuQA4uhbkP9QKi2oUvJd9D x+RlNVYIrB+HVImYqWmF0LnC6LldU15R9x3pdXmuPB2OZ57hzoKLLTaKabd7ZnCgV472 iHMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IAc2VZ7f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v4-20020aa7d804000000b004aef342ac87si13373987edq.95.2023.02.21.12.55.19; Tue, 21 Feb 2023 12:55:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IAc2VZ7f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229606AbjBUUwv (ORCPT + 99 others); Tue, 21 Feb 2023 15:52:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229724AbjBUUwt (ORCPT ); Tue, 21 Feb 2023 15:52:49 -0500 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 131B2BB for ; Tue, 21 Feb 2023 12:52:48 -0800 (PST) Received: by mail-ed1-x52f.google.com with SMTP id ck15so23599142edb.0 for ; Tue, 21 Feb 2023 12:52:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677012766; h=content-disposition:mime-version:message-id:subject:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=ME8MmTL9+xojo7h0KQk1KDfx29xTX9q7Bc+zC3HoTX4=; b=IAc2VZ7fVro0mazMsBITGoh0A+rYarGL+Mq/INZe/ug+CaZUIkAg1pR58RfjtzLSxb v4msx0AzIcb8LG9n1aTEDxzVdzKj4vZYummLfGlFgPA4NLCX70vLeYwb8s7I6jKpQgDN c8DlpHtR12o5K9S5sHZZ7wswSmPBP5jzPjveI0TyRnznQg5VIxT5q60PhG3taZuSVKnd pMxY6n/FgEnGdFAAhN6IAlorhrLS+6ti4mjZdCT4LOuVWd+r/8zfl/ZuSxbcBH3yoXrf Hz59dqjnD5FV8kgsErStepARRrPN09Wp7FoRvGBbnq9NDRVa+VAMDDKwCNX7QBxnlYFw vyDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677012766; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ME8MmTL9+xojo7h0KQk1KDfx29xTX9q7Bc+zC3HoTX4=; b=A5N9NqwURnJ2n6a8wJ1GZeKwz9vZno4m5RH/aOhODbWH4chIteOicyEzf0n9STynIN Zl2TrXV0QwbDeuZ08czk/k+ESFOgaxH/7CNRrkCom2MOu2XTrcS1q7OC1GcuUjFUoG91 nKpZq6NjXZCLAZnE2M9WvoW1k9v2wZfPgudFC3l2ugKXBHfR1hei4cekXlq3NZ2A2YOF ndHo2SC96OOZUS0sncIraSL7a03Std1q13hdTuFoyWXlmQ71AMPBYx5mubHz0sEDzIXy 1XYFcxg5IwFtaoFJROarjpaLdQItUU1YXbR0ykVbIecDqJWfYyETJasKWgWjTNCpJG7m gTtA== X-Gm-Message-State: AO0yUKXeu/04fSWW5dHoIpaQrPU83iuQQouJqRdeIcUZz6zfFua2ksBS 72Gca+ubUjBjgbt/ntVktzY= X-Received: by 2002:a05:6402:268e:b0:4ab:178f:e2fe with SMTP id w14-20020a056402268e00b004ab178fe2femr4989935edd.0.1677012766390; Tue, 21 Feb 2023 12:52:46 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p57935146.dip0.t-ipconnect.de. [87.147.81.70]) by smtp.gmail.com with ESMTPSA id f4-20020a170906738400b008e40853a712sm496113ejl.97.2023.02.21.12.52.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 12:52:45 -0800 (PST) Date: Tue, 21 Feb 2023 21:52:44 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 0/7] staging: rtl8192e: Remove entries from struct rtl819x_ops start with .tx_enable Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758475530129350389?= X-GMAIL-MSGID: =?utf-8?q?1758475530129350389?= Remove unnecessary entries from rtl819x_ops and replace them with function names when required. This increases readability of the code as the reader does not always need to look up the corresponding function name. One patch just removes dead code which increases also readability. Tested with rtl8192e Transferred this patch over wlan connection of rtl8192e This patch series requires the this patch series: "[PATCH 00/11] staging: rtl8192e: Remove entries from struct rtl819x_ops start with .get_eeprom_size" Philipp Hortmann (7): staging: rtl8192e: Remove entry .tx_enable from struct rtl819x_ops staging: rtl8192e: Remove entry .interrupt_re.. from struct rtl819x_ops staging: rtl8192e: Remove entry .tx_check_stuc.. from struct rtl819x_ops staging: rtl8192e: Remove entry .rx_check_stuc.. from struct rtl819x_ops staging: rtl8192e: Remove dead code from struct rtl819x_ops staging: rtl8192e: Remove entry .link_change from struct rtl819x_ops staging: rtl8192e: Remove entry .nic_type from struct rtl819x_ops drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 20 +++++--------------- drivers/staging/rtl8192e/rtl8192e/rtl_core.h | 12 ------------ drivers/staging/rtl8192e/rtl8192e/rtl_pci.c | 6 +++--- 3 files changed, 8 insertions(+), 30 deletions(-)