aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/kbuild
diff options
context:
space:
mode:
authorJesper Juhl <jj@chaosbits.net>2011-03-21 15:47:31 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-03-21 18:54:35 -0400
commit0bf8c869701039b12c3520cb1bb1689595ab108b (patch)
tree4430e15c9e9a993a7bc63306e3bba7f65962c1cb /Documentation/kbuild
parent38f7aa23c4dd5f9af13dffca49879c42a61b0a01 (diff)
Reduce sequential pointer derefs in scsi_error.c and reduce size as well
This patch reduces the number of sequential pointer derefs in drivers/scsi/scsi_error.c This has been submitted a number of times over a couple of years. I believe this version adresses all comments it has gathered over time. Please apply or reject with a reason. The benefits are: - makes the code easier to read. Lots of sequential derefs of the same pointers is not easy on the eye. - theoretically at least, just dereferencing the pointers once can allow the compiler to generally slightly faster code, so in theory this could also be a micro speed optimization. - reduces size of object file (tiny effect: on x86-64, in at least one configuration, the text size decreased from 9439 bytes to 9400) - removes some pointless (mostly trailing) whitespace. Signed-off-by: Jesper Juhl <jj@chaosbits.net> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/kbuild')
0 files changed, 0 insertions, 0 deletions