diff options
author | Arushi Singhal <arushisinghal19971997@gmail.com> | 2017-03-25 10:50:07 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-27 14:24:49 +0200 |
commit | 5c143123321cd30553528e92ef7353f8488a461d (patch) | |
tree | 36d4c86409f25e889e1b404743ec398ca4a086f1 /drivers/staging/greybus | |
parent | 0d6ff6164977d3f205bc59b6df6fce0779b0c131 (diff) | |
download | blackbird-obmc-linux-5c143123321cd30553528e92ef7353f8488a461d.tar.gz blackbird-obmc-linux-5c143123321cd30553528e92ef7353f8488a461d.zip |
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>
Diffstat (limited to 'drivers/staging/greybus')
-rw-r--r-- | drivers/staging/greybus/loopback.c | 5 |
1 files changed, 1 insertions, 4 deletions
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) |