Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751641AbdFIMHP (ORCPT ); Fri, 9 Jun 2017 08:07:15 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:35088 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751530AbdFIMHN (ORCPT ); Fri, 9 Jun 2017 08:07:13 -0400 From: Seraphime Kirkovski To: linux-kernel@vger.kernel.org Cc: sfr@canb.auug.org.au, Seraphime Kirkovski , Jens Axboe , Ming Lei , Hannes Reinecke , Andrew Morton , Omar Sandoval Subject: [PATCH] drivers: block: correct brackets Date: Fri, 9 Jun 2017 14:07:06 +0200 Message-Id: <20170609120707.323-1-kirkseraph@gmail.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1223 Lines: 39 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 --- The patch was made against linux-next. drivers/block/loop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 4d376c10a97a..e288fb30100f 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -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); -- 2.11.0