Commit f5831097 authored by Linus Torvalds's avatar Linus Torvalds

Avoid unused variable if CONFIG_BLK_DEV_MD isn't defined.

parent 5f6e8ce4
...@@ -213,7 +213,6 @@ static void driverfs_remove_partitions(struct gendisk *hd) ...@@ -213,7 +213,6 @@ static void driverfs_remove_partitions(struct gendisk *hd)
static void check_partition(struct gendisk *hd, struct block_device *bdev) static void check_partition(struct gendisk *hd, struct block_device *bdev)
{ {
devfs_handle_t de = NULL; devfs_handle_t de = NULL;
dev_t dev = bdev->bd_dev;
char buf[64]; char buf[64];
struct parsed_partitions *state; struct parsed_partitions *state;
int i; int i;
...@@ -254,7 +253,7 @@ static void check_partition(struct gendisk *hd, struct block_device *bdev) ...@@ -254,7 +253,7 @@ static void check_partition(struct gendisk *hd, struct block_device *bdev)
#if CONFIG_BLK_DEV_MD #if CONFIG_BLK_DEV_MD
if (!state->parts[j-1].flags) if (!state->parts[j-1].flags)
continue; continue;
md_autodetect_dev(dev+j); md_autodetect_dev(bdev->bd_dev+j);
#endif #endif
} }
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment