projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8621e62
)
HSI: omap_ssi: Delete an error message for a failed memory allocation in ssi_add_cont...
author
Markus Elfring
<
[email protected]
>
Tue, 25 Apr 2017 10:42:14 +0000
(12:42 +0200)
committer
Sebastian Reichel
<
[email protected]
>
Thu, 8 Jun 2017 11:21:43 +0000
(13:21 +0200)
The script "checkpatch.pl" pointed information out like the following.
WARNING: Possible unnecessary 'out of memory' message
Thus remove such a statement here.
Link:
http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf
Signed-off-by: Markus Elfring <
[email protected]
>
Signed-off-by: Sebastian Reichel <
[email protected]
>
drivers/hsi/controllers/omap_ssi_core.c
patch
|
blob
|
history
diff --git
a/drivers/hsi/controllers/omap_ssi_core.c
b/drivers/hsi/controllers/omap_ssi_core.c
index fb7ed8fce83a0203add6850f4e2263ee5484415b..88e48b34691646a29c307e4795453004ab969adb 100644
(file)
--- a/
drivers/hsi/controllers/omap_ssi_core.c
+++ b/
drivers/hsi/controllers/omap_ssi_core.c
@@
-384,10
+384,8
@@
static int ssi_add_controller(struct hsi_controller *ssi,
int err;
omap_ssi = devm_kzalloc(&ssi->device, sizeof(*omap_ssi), GFP_KERNEL);
- if (!omap_ssi) {
- dev_err(&pd->dev, "not enough memory for omap ssi\n");
+ if (!omap_ssi)
return -ENOMEM;
- }
err = ida_simple_get(&platform_omap_ssi_ida, 0, 0, GFP_KERNEL);
if (err < 0)