From a65a3335e58c68c93672da01eb6dcf593d871d71 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Fri, 25 Nov 2011 12:15:09 +0800 Subject: fs: partitions: Fix warnings in fs/partitions/check.c Change-Id: I4398ace0c55d4833b1fcbb7a4e71ab8f0b1b044a Signed-off-by: Colin Cross --- fs/partitions/check.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/partitions/check.c b/fs/partitions/check.c index 3c54bbcea5b..eca21808246 100644 --- a/fs/partitions/check.c +++ b/fs/partitions/check.c @@ -366,9 +366,8 @@ static void part_release(struct device *dev) kfree(p); } -static int part_uevent(struct device *dev, struct kobj_uvent_env *env) +static int part_uevent(struct device *dev, struct kobj_uevent_env *env) { - struct gendisk *disk = dev_to_disk(dev); struct hd_struct *part = dev_to_part(dev); add_uevent_var(env, "PARTN=%u", part->partno); -- cgit v1.2.3