diff options
author | Akinobu Mita <[email protected]> | 2015-06-30 14:58:30 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2015-06-30 19:44:58 -0700 |
commit | 92ed932d3081e494a6c61d22c093af100a313034 (patch) | |
tree | 6beecb5f7b26bfebb0769273e5a92c64651dcd2f /lib/memory-notifier-error-inject.c | |
parent | 9ce71148b027e2bd27016139cae1c39401587695 (diff) |
arc: use for_each_sg()
This replaces the plain loop over the sglist array with for_each_sg()
macro which consists of sg_next() function calls. Since arc doesn't
select ARCH_HAS_SG_CHAIN, it is not necessary to use for_each_sg() in
order to loop over each sg element. But this can help find problems with
drivers that do not properly initialize their sg tables when
CONFIG_DEBUG_SG is enabled.
Signed-off-by: Akinobu Mita <[email protected]>
Acked-by: Vineet Gupta <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions