drivers: block: correct brackets
PATCH 1/1 drivers: block: correct brackets
GCC complained on linux-next about
drivers/block/loop.c:1149:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if (figure_loop_size(lo, info->lo_offset, info->lo_sizelimit, ^~drivers/block/loop.c:1152:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
goto exit;
This adjustes the brackets to the inner if.
Fixes f2c6df7dbf9a ("loop: support 4k physical blocksize")
Signed-off-by Seraphime Kirkovski <[email protected]>
---
The patch was made against linux-next.
drivers/block/loop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/block/loop.c +2 -1
@@ -1147,10 +1147,11 @@ loop_set_status(struct loop_device *lo, const struct loop_info64 *info) ((lo->lo_flags & LO_FLAGS_BLOCKSIZE) && lo->lo_logical_blocksize != LO_INFO_BLOCKSIZE(info))) {if (figure_loop_size (lo, info->lo_offset, info->lo_sizelimit, -LO_INFO_BLOCKSIZE (info))) +LO_INFO_BLOCKSIZE (info))) { err = -EFBIG ; goto exit; } + }loop_config_discard (lo);
Signature · 1 line
2.11.0