]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
mtd: onenand_base: Adjust indentation in onenand_read_ops_nolock
authorNathan Chancellor <natechancellor@gmail.com>
Mon, 9 Dec 2019 21:44:23 +0000 (14:44 -0700)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 13 Mar 2020 04:31:00 +0000 (00:31 -0400)
commit27e5d2edf64699e363cb7df84cc77412311b1c5b
tree5ff079a9413790449a0afa4ca09b511182102a18
parent8f6d3ed553bfeb85889425b526a9e31c33067a32
mtd: onenand_base: Adjust indentation in onenand_read_ops_nolock

BugLink: https://bugs.launchpad.net/bugs/1867194
commit 0e7ca83e82d021c928dadf4c13c137d57337540d upstream.

Clang warns:

../drivers/mtd/nand/onenand/onenand_base.c:1269:3: warning: misleading
indentation; statement is not part of the previous 'if'
[-Wmisleading-indentation]
        while (!ret) {
        ^
../drivers/mtd/nand/onenand/onenand_base.c:1266:2: note: previous
statement is here
        if (column + thislen > writesize)
        ^
1 warning generated.

This warning occurs because there is a space before the tab of the while
loop. There are spaces at the beginning of a lot of the lines in this
block, remove them so that the indentation is consistent with the Linux
kernel coding style and clang no longer warns.

Fixes: a8de85d55700 ("[MTD] OneNAND: Implement read-while-load")
Link: https://github.com/ClangBuiltLinux/linux/issues/794
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/mtd/onenand/onenand_base.c