* [PATCH v3] Staging: gpib: gpib_os.c - Remove unnecessary OOM message
@ 2024-11-09 13:05 Omer Faruk BULUT
0 siblings, 0 replies; only message in thread
From: Omer Faruk BULUT @ 2024-11-09 13:05 UTC (permalink / raw)
To: dpenkler, gregkh; +Cc: arnd, linux-staging, linux-kernel, Omer Faruk BULUT
It dublicate 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>
---
v1->v2:
Changelog text wrapped at 72 characters
Unrelated changelog text removed
Trailing spaces removed
v2->v3:
v2 patch wasn't about what changelog text specified. That
unintentional mistake is corrected.
---
drivers/staging/gpib/common/gpib_os.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/gpib/common/gpib_os.c b/drivers/staging/gpib/common/gpib_os.c
index 6b12404efe7d..6eec8ed79a3a 100644
--- a/drivers/staging/gpib/common/gpib_os.c
+++ b/drivers/staging/gpib/common/gpib_os.c
@@ -2093,10 +2093,9 @@ 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) {
- pr_err("gpib: failed register %s interface, out of memory\n", interface->name);
+ if (!entry)
return;
- }
+
entry->interface = interface;
entry->module = provider_module;
list_add(&entry->list, ®istered_drivers);
--
2.17.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-11-09 13:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-09 13:05 [PATCH v3] Staging: gpib: gpib_os.c - Remove unnecessary OOM message Omer Faruk BULUT
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®