]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ethernet: 3c509: Fix most coding style issues
authorMaciej W. Rozycki <macro@orcam.me.uk>
Wed, 20 May 2026 11:19:06 +0000 (12:19 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 21 May 2026 15:28:56 +0000 (08:28 -0700)
commit014767c709a44b4e0a0bf70ee9101fb73f4e288b
tree8ff09d71f5f859948adea9940ed72b8164bb27e5
parent75756cb4b2aa148816b32d7d40c1f79f9a11eef6
ethernet: 3c509: Fix most coding style issues

Update the driver for our current coding style according to output from
`checkpatch.pl' and manual code review, where no change to binary code
results, as indicated by `objdump -dr'.  Exceptions are as follows:

- incomplete reverse xmas tree in set_multicast_list(), as that would
  change binary output,

- referring el3_start_xmit() verbatim rather than via `__func__' with
  pr_debug(), likewise,

- a bunch of pr_cont() calls, likewise,

- a long udelay() call in el3_netdev_set_ecmd() made under a spinlock,
  likewise plus it's not eligible for conversion to a sleep in the first
  place,

- a blank line at the start of a block in el3_interrupt(), to improve
  readability where the first statement would otherwise visually merge
  with the controlling expression of the enclosing `while' statement.

These issues are benign and depending on circumstances may be adressed
with suitable code refactoring later on.

Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk>
Link: https://patch.msgid.link/alpine.DEB.2.21.2605201208280.1450@angie.orcam.me.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/3com/3c509.c