Skip to contentSkip to conversation

Staging: gpib: gpib_os.c - Remove unnecessary OOM message

PATCH Superseded Omer Faruk BULUT 2 participants 2 messages Nov 7, 2024 – Nov 8, 2024 Staging

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Staging: gpib: gpib_os.c - Remove unnecessary OOM message

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

WARNING: Possible unnecessary 'out of memory' message

---
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(-)
drivers/staging/gpib/common/gpib_os.c +1 -1
index 27654b2180a5..7d5244113f1b 100644
@@ -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;
Signature · 1 line
2.17.1
maintainer
#1 lore raw
Quoted 6 lines · 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

That is not what this patch does at all :(