]> git.baikalelectronics.ru Git - kernel.git/commit
hexdump: do a few calculations ahead
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 12 Feb 2015 23:02:26 +0000 (15:02 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 13 Feb 2015 02:54:15 +0000 (18:54 -0800)
commit37296e3be6179a2fc951d6ac6a46641748064ace
tree276ad2aa80b54b674b67e74552fbab443a235b8b
parent92fe7e05c4be41981b74eb2b08bc995ad04bceca
hexdump: do a few calculations ahead

Instead of doing calculations in each case of different groupsize let's do
them beforehand.  While there, change the switch to an if-else-if
construction.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/hexdump.c