From: Matthias Kaehlcke Date: Fri, 26 May 2017 21:22:37 +0000 (-0700) Subject: cfq-iosched: Delete unused function min_vdisktime() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=03ea8ad78cfb2910862c8dfcd2a627fc04097db2;p=openwrt%2Fstaging%2Fblogic.git cfq-iosched: Delete unused function min_vdisktime() This fixes the following warning when building with clang: block/cfq-iosched.c:970:19: error: unused function 'min_vdisktime' [-Werror,-Wunused-function] Signed-off-by: Matthias Kaehlcke Signed-off-by: Jens Axboe --- diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index da69b079725f..f57bc7d5c483 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c @@ -978,15 +978,6 @@ static inline u64 max_vdisktime(u64 min_vdisktime, u64 vdisktime) return min_vdisktime; } -static inline u64 min_vdisktime(u64 min_vdisktime, u64 vdisktime) -{ - s64 delta = (s64)(vdisktime - min_vdisktime); - if (delta < 0) - min_vdisktime = vdisktime; - - return min_vdisktime; -} - static void update_min_vdisktime(struct cfq_rb_root *st) { struct cfq_group *cfqg;