[PATCH v2] Staging: gpib: gpib_os.c - Remove unnecessary OOM message

Omer Faruk BULUT posted 1 patch 2 weeks, 2 days ago
There is a newer version of this series
drivers/staging/gpib/common/gpib_os.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH v2] Staging: gpib: gpib_os.c - Remove unnecessary OOM message
Posted by Omer Faruk BULUT 2 weeks, 2 days ago
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
Re: [PATCH v2] Staging: gpib: gpib_os.c - Remove unnecessary OOM message
Posted by Greg KH 2 weeks, 1 day ago
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 :(