]> git.karo-electronics.de Git - karo-tx-linux.git/commit
firmware/dmi_scan: drop OOM messages
authorJean Delvare <jdelvare@suse.de>
Thu, 18 Jul 2013 23:56:49 +0000 (09:56 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 18 Jul 2013 23:56:49 +0000 (09:56 +1000)
commit019deb7ca0c18af5eaec572b8da6651b04e7836a
treed7e445ea16238c773b3ecbd836f5658dec74b95a
parent978f3c7f9553f8fe1f590c2a7d8e117688c16b22
firmware/dmi_scan: drop OOM messages

As reported by Joe Perches: OOM messages generally aren't useful.
dmi_alloc is either a trivial front-end to kzalloc, and kzalloc already
does a dump_stack() when OOM, or for x86, dmi_alloc uses extend_brk which
BUGs when unsuccessful.

So we can remove all 6 such log messages in the dmi_scan driver, to shrink
the binary size (by 528 bytes on x86_64.)

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Reported-by: Joe Perches <joe@perches.com>
Cc: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/firmware/dmi_scan.c