]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
lib/scatterlist.c: adjust indentation in __sg_alloc_table
authorNathan Chancellor <natechancellor@gmail.com>
Fri, 31 Jan 2020 06:16:37 +0000 (22:16 -0800)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 24 Feb 2020 15:33:02 +0000 (16:33 +0100)
commitb743cb8bdd05b4db454354f1b0c105631b106e11
treea5996d9423b3685a347267b6d297d7176ed29248
parent8aefaba5f469eab5527ef4a30946f6c588b2c1ba
lib/scatterlist.c: adjust indentation in __sg_alloc_table

BugLink: https://bugs.launchpad.net/bugs/1864488
[ Upstream commit 4e456fee215677584cafa7f67298a76917e89c64 ]

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/20191218033606.11942-1-natechancellor@gmail.com
Link: https://github.com/ClangBuiltLinux/linux/issues/830
Fixes: edce6820a9fd ("scatterlist: prevent invalid free when alloc fails")
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
lib/scatterlist.c