PM / OPP / clk: Remove unnecessary OOM message
authorQuentin Lambert <lambert.quentin@gmail.com>
Mon, 9 Feb 2015 09:45:32 +0000 (10:45 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 12 Feb 2015 01:00:52 +0000 (02:00 +0100)
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>
Acked-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

No differences found