[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/3] block: drive_init(): Fix indentation
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] [PATCH 1/3] block: drive_init(): Fix indentation |
Date: |
Fri, 01 Jul 2011 09:16:38 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Luiz Capitulino <address@hidden> writes:
> Some constructions in that function have broken indentation. Fix them.
>
> Signed-off-by: Luiz Capitulino <address@hidden>
> ---
> blockdev.c | 52 ++++++++++++++++++++++++++--------------------------
> 1 files changed, 26 insertions(+), 26 deletions(-)
>
> diff --git a/blockdev.c b/blockdev.c
> index 7d579d6..27bf68a 100644
> --- a/blockdev.c
> +++ b/blockdev.c
> @@ -272,23 +272,23 @@ DriveInfo *drive_init(QemuOpts *opts, int
> default_to_scsi)
> if (type == IF_COUNT) {
> error_report("unsupported bus type '%s'", buf);
> return NULL;
> - }
> + }
Old indentation is correct, apart from tabs.
New indentation is incorrect, and fails to remove tabs.
if (type == IF_COUNT) {
error_report("unsupported bus type '%s'", buf);
return NULL;
}
^^^^^^^^ ^
tab here incorrect indentation
Check your editor settings.
I don't see "broken" indentation anywhere in this function. A few lines
are off: indented 3 instead of 4. If we want to fix such things, I'd
prefer it done globally.
- Re: [Qemu-devel] [PATCH 1/3] block: drive_init(): Fix indentation,
Markus Armbruster <=