From: Arushi Singhal Date: Sat, 25 Mar 2017 05:20:07 +0000 (+0530) Subject: staging: greybus: compress return logic X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=5c143123321cd30553528e92ef7353f8488a461d;p=openwrt%2Fstaging%2Fblogic.git staging: greybus: compress return logic Simplify function returns by merging assignment and return. Signed-off-by: Arushi Singhal Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c index aaf29a5fac83..08e255884206 100644 --- a/drivers/staging/greybus/loopback.c +++ b/drivers/staging/greybus/loopback.c @@ -365,11 +365,8 @@ static void gb_loopback_calculate_stats(struct gb_loopback *gb, bool error); static u32 gb_loopback_nsec_to_usec_latency(u64 elapsed_nsecs) { - u32 lat; - do_div(elapsed_nsecs, NSEC_PER_USEC); - lat = elapsed_nsecs; - return lat; + return elapsed_nsecs; } static u64 __gb_loopback_calc_latency(u64 t1, u64 t2)