From: Quentin Lambert Date: Thu, 19 Feb 2015 12:49:20 +0000 (+0100) Subject: staging: unisys: Remove unnecessary OOM message X-Git-Tag: omap-for-v4.2/o2_dc~155^2~138^2~859 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edff162ce38ec1cea17f3cadd095e8e449d79735;p=pandora-kernel.git staging: unisys: Remove unnecessary OOM message This patch reduces the kernel size by removing error messages that duplicate the normal OOM message. A simplified version of the semantic patch that finds this problem is as follows: (http://coccinelle.lip6.fr) @@ identifier f,print,l; expression e; constant char[] c; @@ e = \(kzalloc\|kmalloc\|devm_kzalloc\|devm_kmalloc\)(...); if (e == NULL) { <+... - print(...,c,...); ... when any ( goto l; | return ...; ) ...+> } Signed-off-by: Quentin Lambert Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed