fs: partitions: Fix warnings in fs/partitions/check.c
Change-Id: I4398ace0c55d4833b1fcbb7a4e71ab8f0b1b044a
Signed-off-by: Colin Cross <ccross@android.com>
diff --git a/fs/partitions/check.c b/fs/partitions/check.c
index d9b8329..467ac4b 100644
--- a/fs/partitions/check.c
+++ b/fs/partitions/check.c
@@ -366,9 +366,8 @@
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);