All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: zwu.kernel@gmail.com
Cc: linux-kernel@vger.kernel.org, wuzhy@linux.vnet.ibm.com,
	stefanha@linux.vnet.ibm.com, trbecker@trbecker.org
Subject: Re: [PATCH v2] block: Remove some unnecessary codes
Date: Fri, 11 May 2012 19:08:05 +0200	[thread overview]
Message-ID: <4FAD4775.2080101@kernel.dk> (raw)
In-Reply-To: <1336619193-4808-1-git-send-email-zwu.kernel@gmail.com>

On 2012-05-10 05:06, zwu.kernel@gmail.com wrote:
> From: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
> 
> Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
> ---
>  block/partition-generic.c |    3 ---
>  1 files changed, 0 insertions(+), 3 deletions(-)
> 
> diff --git a/block/partition-generic.c b/block/partition-generic.c
> index 6df5d69..b6a9d5b 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)
> @@ -508,8 +507,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);

Thanks, applied.

-- 
Jens Axboe


      parent reply	other threads:[~2012-05-11 17:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-10  3:06 [PATCH v2] block: Remove some unnecessary codes zwu.kernel
2012-05-11 15:08 ` Zhi Yong Wu
2012-05-11 17:08 ` Jens Axboe [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FAD4775.2080101@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stefanha@linux.vnet.ibm.com \
    --cc=trbecker@trbecker.org \
    --cc=wuzhy@linux.vnet.ibm.com \
    --cc=zwu.kernel@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.