diff options
| author | 2016-03-19 18:02:55 +0530 | |
|---|---|---|
| committer | 2016-03-28 07:30:36 -0700 | |
| commit | 3d1477309806459d39e13d8c3206ba35d183c34a (patch) | |
| tree | fe29e913190040dbb6a7071d38603698263dc657 /scripts/stackusage | |
| parent | Linux 4.6-rc1 (diff) | |
staging: lustre: lnet: Replace sg++ with sg = sg_next(sg)
With scatterlist chaining, simply incrementing the array does not
work. sg_next macro was thus introduced to follow the chain links
when necessary. So replace sg++ with sg_next.
This change was made with the help of the following Coccinelle
semantic patch:
//<smpl>
@@
struct scatterlist *sg;
@@
-sg++
+sg = sg_next(sg)
//</smpl>
Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
