Thread (3 messages) 3 messages, 3 authors, 2021-08-09

Re: [PATCH v2] parisc: Make struct parisc_driver::remove() return void

From: Jiri Slaby <jirislaby@kernel.org>
Date: 2021-08-09 04:19:40
Also in: alsa-devel, linux-input, linux-scsi, linux-serial

On 07. 08. 21, 11:19, Uwe Kleine-König wrote:
The caller of this function (parisc_driver_remove() in
arch/parisc/kernel/drivers.c) ignores the return value, so better don't
return any value at all to not wake wrong expectations in driver authors.

The only function that could return a non-zero value before was
ipmi_parisc_remove() which returns the return value of
ipmi_si_remove_by_dev(). Make this function return void, too, as for all
other callers the value is ignored, too.

Also fold in a small checkpatch fix for:

WARNING: Unnecessary space before function pointer arguments
+	void (*remove) (struct parisc_device *dev);

Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> (for drivers/input)
Signed-off-by: Uwe Kleine-König <redacted>
---
changes since v1 sent with Message-Id:
20210806093938.1950990-1-u.kleine-koenig@pengutronix.de:

  - Fix a compiler error noticed by the kernel test robot
  - Add Ack for Dmitry

  arch/parisc/include/asm/parisc-device.h  | 4 ++--
  drivers/char/ipmi/ipmi_si.h              | 2 +-
  drivers/char/ipmi/ipmi_si_intf.c         | 6 +-----
  drivers/char/ipmi/ipmi_si_parisc.c       | 4 ++--
  drivers/char/ipmi/ipmi_si_platform.c     | 4 +++-
  drivers/input/keyboard/hilkbd.c          | 4 +---
  drivers/input/serio/gscps2.c             | 3 +--
  drivers/net/ethernet/i825xx/lasi_82596.c | 3 +--
  drivers/parport/parport_gsc.c            | 3 +--
  drivers/scsi/lasi700.c                   | 4 +---
  drivers/scsi/zalon.c                     | 4 +---
  drivers/tty/serial/mux.c                 | 3 +--
For the TTY piece:
Acked-by: Jiri Slaby <jirislaby@kernel.org>

thanks,
-- 
-- 
js
suse labs
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help