diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-07-10 18:08:32 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-07-17 18:23:16 +0300 |
commit | caa97be1a2052f2dfc026c3fe5ef62f620782f24 (patch) | |
tree | a8a42967d957c7ea6f05153ca9c691e1bdf75469 /drivers/auxdisplay | |
parent | 2dee584bc9e3c75afc2c85f107e516c58a8efaf3 (diff) | |
download | linux-caa97be1a2052f2dfc026c3fe5ef62f620782f24.tar.xz |
char/mwave: make some arrays static const to make object code smaller
Don't populate arrays on the stack but make them static. Makes
the object code smaller. Also remove temporary variables that
have hard coded array sizes and just use ARRAY_SIZE instead and
wrap some lines that are wider than 80 chars to clean up some
checkpatch warnings.
Before:
text data bss dec hex filename
11141 2008 64 13213 339d drivers/char/mwave/smapi.o
After:
text data bss dec hex filename
10697 2352 64 13113 3339 drivers/char/mwave/smapi.o
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/auxdisplay')
0 files changed, 0 insertions, 0 deletions