Skip to content

Commit 23b88b5

Browse files
nathanchancegregkh
authored andcommitted
lib/scatterlist.c: adjust indentation in __sg_alloc_table
[ Upstream commit 4e456fe ] Clang warns: ../lib/scatterlist.c:314:5: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] return -ENOMEM; ^ ../lib/scatterlist.c:311:4: note: previous statement is here if (prv) ^ 1 warning generated. This warning occurs because there is a space before the tab on this line. Remove it so that the indentation is consistent with the Linux kernel coding style and clang no longer warns. Link: http://lkml.kernel.org/r/[email protected] Link: ClangBuiltLinux/linux#830 Fixes: edce682 ("scatterlist: prevent invalid free when alloc fails") Signed-off-by: Nathan Chancellor <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 5a553bd commit 23b88b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/scatterlist.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ int __sg_alloc_table(struct sg_table *table, unsigned int nents,
311311
if (prv)
312312
table->nents = ++table->orig_nents;
313313

314-
return -ENOMEM;
314+
return -ENOMEM;
315315
}
316316

317317
sg_init_table(sg, alloc_size);

0 commit comments

Comments
 (0)