lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAEH94LgFJk6_yXWbQwvFDvN2HL=qnWbB5gmC5ZwE0heygZWX8w@mail.gmail.com>
Date:	Thu, 10 May 2012 11:04:09 +0800
From:	Zhi Yong Wu <zwu.kernel@...il.com>
To:	Thiago Rafel Becker <trbecker@...ecker.org>
Cc:	linux-kernel@...r.kernel.org, axboe@...nel.dk,
	wuzhy@...ux.vnet.ibm.com, stefanha@...ux.vnet.ibm.com
Subject: Re: [PATCH] block: remove some unnecessary codes

On Thu, May 10, 2012 at 10:58 AM, Thiago Rafel Becker
<trbecker@...ecker.org> wrote:
> You should also remove the if statement on line 511.
Yeah, good comment. thanks. pls see v2.
>
> On Thu, 10 May 2012, zwu.kernel@...il.com wrote:
>
>> From: Zhi Yong Wu <wuzhy@...ux.vnet.ibm.com>
>>
>> Signed-off-by: Zhi Yong Wu <wuzhy@...ux.vnet.ibm.com>
>> ---
>>  block/partition-generic.c |    2 --
>>  1 files changed, 0 insertions(+), 2 deletions(-)
>>
>> diff --git a/block/partition-generic.c b/block/partition-generic.c
>> index 6df5d69..4c03880 100644
>> --- a/block/partition-generic.c
>> +++ b/block/partition-generic.c
>> @@ -473,7 +473,6 @@ rescan:
>>       /* add partitions */
>>       for (p = 1; p < state->limit; p++) {
>>               sector_t size, from;
>> -             struct partition_meta_info *info = NULL;
>>
>>               size = state->parts[p].size;
>>               if (!size)
>> @@ -509,7 +508,6 @@ rescan:
>>               }
>>
>>               if (state->parts[p].has_info)
>> -                     info = &state->parts[p].info;
>>               part = add_partition(disk, p, from, size,
>>                                    state->parts[p].flags,
>>                                    &state->parts[p].info);
>> --
>> 1.7.6
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>> the body of a message to majordomo@...r.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>> Please read the FAQ at  http://www.tux.org/lkml/
>>



-- 
Regards,

Zhi Yong Wu
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ