From: Colin Cross Date: Wed, 7 Apr 2010 19:08:27 +0000 (-0700) Subject: fs: partitions: Fix warnings in fs/partitions/check.c X-Git-Tag: firefly_0821_release~9833^2~5^2~215 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0f1d4d74376d59796736cc398abcd9ef1cef21e3;p=firefly-linux-kernel-4.4.55.git fs: partitions: Fix warnings in fs/partitions/check.c Change-Id: I4398ace0c55d4833b1fcbb7a4e71ab8f0b1b044a Signed-off-by: Colin Cross --- diff --git a/fs/partitions/check.c b/fs/partitions/check.c index 019cdada4764..77e420c0d2c0 100644 --- a/fs/partitions/check.c +++ b/fs/partitions/check.c @@ -355,9 +355,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);