lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220921140524.3831101-1-yangyingliang@huawei.com>
Date:   Wed, 21 Sep 2022 22:05:06 +0800
From:   Yang Yingliang <yangyingliang@...wei.com>
To:     <netdev@...r.kernel.org>
CC:     <f.fainelli@...il.com>, <andrew@...n.ch>,
        <vivien.didelot@...il.com>, <olteanv@...il.com>,
        <kurt@...utronix.de>, <hauke@...ke-m.de>,
        <Woojung.Huh@...rochip.com>, <sean.wang@...iatek.com>,
        <linus.walleij@...aro.org>, <clement.leger@...tlin.com>,
        <george.mccollister@...il.com>
Subject: [PATCH net-next 00/18] net: dsa: remove unnecessary set_drvdata()

In this patch set, I removed all set_drvdata(NULL) functions in ->remove() in
drivers/net/dsa/.

The driver_data will be set to NULL in device_unbind_cleanup() after calling ->remove(),
so all set_drvdata(NULL) functions in ->remove() is redundant, they can be removed.

Here is the previous patch set:
https://lore.kernel.org/netdev/facfc855-d082-cc1c-a0bc-027f562a2f45@huawei.com/T/

Yang Yingliang (18):
  net: dsa: b53: remove unnecessary set_drvdata()
  net: dsa: bcm_sf2: remove unnecessary platform_set_drvdata()
  net: dsa: loop: remove unnecessary dev_set_drvdata()
  net: dsa: hellcreek: remove unnecessary platform_set_drvdata()
  net: dsa: lan9303: remove unnecessary dev_set_drvdata()
  net: dsa: lantiq_gswip: remove unnecessary platform_set_drvdata()
  net: dsa: microchip: remove unnecessary set_drvdata()
  net: dsa: mt7530: remove unnecessary dev_set_drvdata()
  net: dsa: mv88e6060: remove unnecessary dev_set_drvdata()
  net: dsa: mv88e6xxx: remove unnecessary dev_set_drvdata()
  net: dsa: ocelot: remove unnecessary set_drvdata()
  net: dsa: ar9331: remove unnecessary dev_set_drvdata()
  net: dsa: qca8k: remove unnecessary dev_set_drvdata()
  net: dsa: realtek: remove unnecessary set_drvdata()
  net: dsa: rzn1-a5psw: remove unnecessary platform_set_drvdata()
  net: dsa: sja1105: remove unnecessary spi_set_drvdata()
  net: dsa: vitesse-vsc73xx: remove unnecessary set_drvdata()
  net: dsa: xrs700x: remove unnecessary dev_set_drvdata()

 drivers/net/dsa/b53/b53_mdio.c             | 2 --
 drivers/net/dsa/b53/b53_mmap.c             | 2 --
 drivers/net/dsa/b53/b53_srab.c             | 2 --
 drivers/net/dsa/bcm_sf2.c                  | 2 --
 drivers/net/dsa/dsa_loop.c                 | 2 --
 drivers/net/dsa/hirschmann/hellcreek.c     | 1 -
 drivers/net/dsa/lan9303_mdio.c             | 2 --
 drivers/net/dsa/lantiq_gswip.c             | 2 --
 drivers/net/dsa/microchip/ksz8863_smi.c    | 2 --
 drivers/net/dsa/microchip/ksz_spi.c        | 2 --
 drivers/net/dsa/mt7530.c                   | 2 --
 drivers/net/dsa/mv88e6060.c                | 2 --
 drivers/net/dsa/mv88e6xxx/chip.c           | 2 --
 drivers/net/dsa/ocelot/felix_vsc9959.c     | 2 --
 drivers/net/dsa/ocelot/seville_vsc9953.c   | 2 --
 drivers/net/dsa/qca/ar9331.c               | 2 --
 drivers/net/dsa/qca/qca8k-8xxx.c           | 2 --
 drivers/net/dsa/realtek/realtek-mdio.c     | 2 --
 drivers/net/dsa/realtek/realtek-smi.c      | 2 --
 drivers/net/dsa/rzn1_a5psw.c               | 2 --
 drivers/net/dsa/sja1105/sja1105_main.c     | 2 --
 drivers/net/dsa/vitesse-vsc73xx-platform.c | 2 --
 drivers/net/dsa/vitesse-vsc73xx-spi.c      | 2 --
 drivers/net/dsa/xrs700x/xrs700x_mdio.c     | 2 --
 24 files changed, 47 deletions(-)

-- 
2.25.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ