[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YQ2DdZG2tQuzM22U@google.com>
Date: Fri, 6 Aug 2021 11:46:13 -0700
From: Dmitry Torokhov <dmitry.torokhov@...il.com>
To: Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>
Cc: "James E.J. Bottomley" <James.Bottomley@...senpartnership.com>,
Helge Deller <deller@....de>, Corey Minyard <minyard@....org>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Sudip Mukherjee <sudipm.mukherjee@...il.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jiri Slaby <jirislaby@...nel.org>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>, linux-parisc@...r.kernel.org,
openipmi-developer@...ts.sourceforge.net,
linux-input@...r.kernel.org, netdev@...r.kernel.org,
linux-scsi@...r.kernel.org, linux-serial@...r.kernel.org,
alsa-devel@...a-project.org, kernel@...gutronix.de
Subject: Re: [PATCH] parisc: Make struct parisc_driver::remove() return void
On Fri, Aug 06, 2021 at 11:39:38AM +0200, 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);
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@...gutronix.de>
> ---
...
> drivers/input/keyboard/hilkbd.c | 4 +---
> drivers/input/serio/gscps2.c | 3 +--
Acked-by: Dmitry Torokhov <dmitry.torokhov@...il.com>
Thanks.
--
Dmitry
Powered by blists - more mailing lists