From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx> Date: Fri, 5 May 2017 22:38:51 +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 <elfring@xxxxxxxxxxxxxxxxxxxxx> --- kernel/trace/trace_uprobe.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/trace/trace_uprobe.c b/kernel/trace/trace_uprobe.c index e9c1865f7397..d19fa2a6cc7b 100644 --- a/kernel/trace/trace_uprobe.c +++ b/kernel/trace/trace_uprobe.c @@ -490,9 +490,7 @@ static int create_trace_uprobe(int argc, char **argv) tu->offset = offset; tu->inode = inode; tu->filename = kstrdup(filename, GFP_KERNEL); - if (!tu->filename) { - pr_info("Failed to allocate filename.\n"); ret = -ENOMEM; goto error; } -- 2.12.2 -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html