Commit d11dbc09 authored by Nathan Chancellor's avatar Nathan Chancellor Committed by Greg Kroah-Hartman

lib/scatterlist.c: adjust indentation in __sg_alloc_table

[ Upstream commit 4e456fee ]

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:[email protected]
Fixes: edce6820 ("scatterlist: prevent invalid free when alloc fails")
Signed-off-by: Nathan Chancellor's avatarNathan Chancellor <[email protected]>
Signed-off-by: default avatarAndrew Morton <[email protected]>
Signed-off-by: default avatarLinus Torvalds <[email protected]>
Signed-off-by: default avatarSasha Levin <[email protected]>
parent f08694f0
......@@ -311,7 +311,7 @@ int __sg_alloc_table(struct sg_table *table, unsigned int nents,
if (prv)
table->nents = ++table->orig_nents;
return -ENOMEM;
return -ENOMEM;
sg_init_table(sg, alloc_size);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment