]> git.ipfire.org Git - thirdparty/linux.git/commit
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)
commit59d84ca8c46a93ad62f9129458e897e7fe5075de
tree9476854453199ad93851f272ab2acf5bbee7b147
parent04bf1c7f76b05be8134a833ec023f1c96f81b8a1
PM / OPP / clk: 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>
Acked-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/firmware_class.c
drivers/base/power/clock_ops.c
drivers/base/power/opp.c