linux-staging.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] Staging: gpib: gpib_os.c - Remove unnecessary OOM message
@ 2024-11-07 21:38 Omer Faruk BULUT
  2024-11-08  3:50 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Omer Faruk BULUT @ 2024-11-07 21:38 UTC (permalink / raw)
  To: dpenkler, gregkh; +Cc: arnd, linux-staging, linux-kernel, Omer Faruk BULUT

It duplicate the MM subsystem generic OOM message. This patch fixes
the following checkpatch warning.

     WARNING: Possible unnecessary 'out of memory' message

Signed-off-by: Omer Faruk BULUT <m.omerfarukbulut@gmail.com>
---
v2:
	Changelog text  wrapped at 72 character
        Unrelated changelog text removed
        Trailing spaces removed
---
 drivers/staging/gpib/common/gpib_os.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/gpib/common/gpib_os.c b/drivers/staging/gpib/common/gpib_os.c
index 27654b2180a5..7d5244113f1b 100644
--- a/drivers/staging/gpib/common/gpib_os.c
+++ b/drivers/staging/gpib/common/gpib_os.c
@@ -2093,7 +2093,7 @@ void gpib_register_driver(gpib_interface_t *interface, struct module *provider_m
 	struct gpib_interface_list_struct *entry;
 
 	entry = kmalloc(sizeof(*entry), GFP_KERNEL);
-	if (!entry) 
+	if (!entry)
 		return;
 	
 	entry->interface = interface;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] Staging: gpib: gpib_os.c - Remove unnecessary OOM message
  2024-11-07 21:38 [PATCH v2] Staging: gpib: gpib_os.c - Remove unnecessary OOM message Omer Faruk BULUT
@ 2024-11-08  3:50 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2024-11-08  3:50 UTC (permalink / raw)
  To: Omer Faruk BULUT; +Cc: dpenkler, arnd, linux-staging, linux-kernel

On Fri, Nov 08, 2024 at 12:38:12AM +0300, Omer Faruk BULUT wrote:
> It duplicate the MM subsystem generic OOM message. This patch fixes
> the following checkpatch warning.
> 
>      WARNING: Possible unnecessary 'out of memory' message
> 
> Signed-off-by: Omer Faruk BULUT <m.omerfarukbulut@gmail.com>

That is not what this patch does at all :(


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-11-08  3:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-07 21:38 [PATCH v2] Staging: gpib: gpib_os.c - Remove unnecessary OOM message Omer Faruk BULUT
2024-11-08  3:50 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).