staging: greybus: compress return logic

Simplify function returns by merging assignment and return.

Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Arushi Singhal 2017-03-25 10:50:07 +05:30 committed by Greg Kroah-Hartman
parent 0d6ff61649
commit 5c14312332
1 changed files with 1 additions and 4 deletions

View File

@ -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)