]> git.karo-electronics.de Git - linux-beck.git/commit
staging: rtl8192e: Remove unnecessary OOM message
authorQuentin Lambert <lambert.quentin@gmail.com>
Thu, 5 Mar 2015 13:12:15 +0000 (14:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Mar 2015 00:59:53 +0000 (16:59 -0800)
commitb6b0012c2d410704782301299d36d311f9a39334
treeb19683ce00be3ac69d46eea251f1121b3919afd5
parentd08c028c75e293598b9f3e2c8ad87fb43199298c
staging: rtl8192e: 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 <lambert.quentin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib_module.c
drivers/staging/rtl8192e/rtllib_rx.c