fault-injection: cleanup simple attribute of stacktrace_depth
authorAkinobu Mita <akinobu.mita@gmail.com>
Tue, 26 Jul 2011 23:09:01 +0000 (16:09 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Jul 2011 23:49:46 +0000 (16:49 -0700)
commit8307fc257cf3931d87e172bd8663e80c3d1e56a3
tree4f265586a0617284be4baec5b5d6990cdea13b31
parent6b16f748a0d4546726bb53cad58525adfd6425e9
fault-injection: cleanup simple attribute of stacktrace_depth

Minor cosmetic changes for simple attribute of stacktrace_depth:

 - use min_t()
 - reduce #ifdef by moving a function
 - do not use partly capitalized function name

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/fault-inject.c