Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4824236ybl; Wed, 22 Jan 2020 05:26:30 -0800 (PST) X-Google-Smtp-Source: APXvYqz0Szsy/u8xmktw94rk82NDyTbBMDNaamuisUEOfhjN9iOoeojHb0s+I+tiu+l6mBZJDFtT X-Received: by 2002:aca:5303:: with SMTP id h3mr6546600oib.109.1579699590429; Wed, 22 Jan 2020 05:26:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579699590; cv=none; d=google.com; s=arc-20160816; b=gsmVjQwYja847mJlkyeSiZBfrimAYSWCx3lKheVdetH86Ipc8inf5QAq4Y0Wx5Ag53 CPzaj+ksPzIz9MddReiHCzNc1MdTG+us0Hbprp65s3y8F5cy4nAaFOXpbQS4EE6A4cGf 3557Bw46bmxGPZ8zKjYRIENfFyae6anFZkfBhaPbW3y02N7HmzR5BcRypgKNQjxetbDV X4n9Pf9jAK+vAik9ZerwRCjmn7oKEu6J4MsDcCgE+cKMvenx05wLewz/lRanAwHhjbxp JNygJYuswa/F73Eng2FmXU+a4kYxAUyWxw60Krq+A1d460Xl9MqXwe1NGc8FSp6LJwrj F5xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=P9le4voWbNzyH9vMl5fe94lGboHkbUZ1UmEI1rby/gk=; b=NZgLMxC+vwkwe4lyKKrhQ6tzxEQHDLllhRdS0/XBW4Rene/JacNUSY7Yec4eIhfNUO RCEaI7eaq0NdL1MOYPk74/wQLYNe2ZOWfhyWGkiY9Tm/N0zf9eFJ6PCbXwEDewR/mY4X UIMGTU22LLZ0AUb63c00El389b50YfkbZj+h6YY3oAxy1bbX52JBaGCSfjK7g2ouE+FP L4yea1TDZJ22KIYiBvJEScgYsojXbnr6GigpzNm9i4tFLgKkFu1xezF5OEq/3SBj95Oo f0Yp6An+41W5Et/d/H71JudvMpwEzLz+MNyX+KWPYQYj7bJ+x9TRK+4ZOtb1SDaXDpQu 8tDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZPtsyzeq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f4si23500935oto.169.2020.01.22.05.26.17; Wed, 22 Jan 2020 05:26:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZPtsyzeq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731249AbgAVNZW (ORCPT + 99 others); Wed, 22 Jan 2020 08:25:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:45040 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729730AbgAVNZU (ORCPT ); Wed, 22 Jan 2020 08:25:20 -0500 Received: from localhost (unknown [84.241.205.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E49F4205F4; Wed, 22 Jan 2020 13:25:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579699519; bh=nmQXkcSiUAJqWYJ+V3uerZ+yCxSq758WLrSrWnOS+G4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZPtsyzeq0/N7Rgm2NC5PcyCzkqwMQKYDe6Twah7VwdoTKG3QMTTCOMgtqbJHqpsYa 6arGcT0MONGINWoByOpCjuS7q2dDgN9DwzsJu7x+Oe9T2nz1UnqypZ1WYWc8wOo/Q6 ygUPJgQUtDU/Ry8LSfM7Jh0AmvJf7a8ngZTFglfg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Chancellor , Juergen Gross , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Subject: [PATCH 5.4 170/222] xen/blkfront: Adjust indentation in xlvbd_alloc_gendisk Date: Wed, 22 Jan 2020 10:29:16 +0100 Message-Id: <20200122092845.880318995@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200122092833.339495161@linuxfoundation.org> References: <20200122092833.339495161@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nathan Chancellor commit 589b72894f53124a39d1bb3c0cecaf9dcabac417 upstream. Clang warns: ../drivers/block/xen-blkfront.c:1117:4: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] nr_parts = PARTS_PER_DISK; ^ ../drivers/block/xen-blkfront.c:1115:3: note: previous statement is here if (err) ^ This is because there is a space at the beginning of this line; remove it so that the indentation is consistent according to the Linux kernel coding style and clang no longer warns. While we are here, the previous line has some trailing whitespace; clean that up as well. Fixes: c80a420995e7 ("xen-blkfront: handle Xen major numbers other than XENVBD") Link: https://github.com/ClangBuiltLinux/linux/issues/791 Signed-off-by: Nathan Chancellor Reviewed-by: Juergen Gross Acked-by: Roger Pau Monné Signed-off-by: Juergen Gross Signed-off-by: Greg Kroah-Hartman --- drivers/block/xen-blkfront.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/block/xen-blkfront.c +++ b/drivers/block/xen-blkfront.c @@ -1113,8 +1113,8 @@ static int xlvbd_alloc_gendisk(blkif_sec if (!VDEV_IS_EXTENDED(info->vdevice)) { err = xen_translate_vdev(info->vdevice, &minor, &offset); if (err) - return err; - nr_parts = PARTS_PER_DISK; + return err; + nr_parts = PARTS_PER_DISK; } else { minor = BLKIF_MINOR_EXT(info->vdevice); nr_parts = PARTS_PER_EXT_DISK;