Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux: Kernel

[PATCH v2] block: Remove some unnecessary codes

 

 

Linux kernel RSS feed   Index | Next | Previous | View Threaded


zwu.kernel at gmail

May 9, 2012, 8:06 PM

Post #1 of 3 (104 views)
Permalink
[PATCH v2] block: Remove some unnecessary codes

From: Zhi Yong Wu <wuzhy [at] linux>

Signed-off-by: Zhi Yong Wu <wuzhy [at] linux>
---
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);
--
1.7.6

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


zwu.kernel at gmail

May 11, 2012, 8:08 AM

Post #2 of 3 (99 views)
Permalink
Re: [PATCH v2] block: Remove some unnecessary codes [In reply to]

HI, Jens,

Can you help queue this patch up?

On Thu, May 10, 2012 at 11:06 AM, <zwu.kernel [at] gmail> wrote:
> From: Zhi Yong Wu <wuzhy [at] linux>
>
> Signed-off-by: Zhi Yong Wu <wuzhy [at] linux>
> ---
>  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);
> --
> 1.7.6
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo [at] vger
> 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 [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


axboe at kernel

May 11, 2012, 10:08 AM

Post #3 of 3 (98 views)
Permalink
Re: [PATCH v2] block: Remove some unnecessary codes [In reply to]

On 2012-05-10 05:06, zwu.kernel [at] gmail wrote:
> From: Zhi Yong Wu <wuzhy [at] linux>
>
> Signed-off-by: Zhi Yong Wu <wuzhy [at] linux>
> ---
> 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

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

Linux kernel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.