Skip to content
Commit 2665df51 authored by Chris Opperman's avatar Chris Opperman Committed by Greg Kroah-Hartman
Browse files

staging: comedi: Improved readability of function comedi_nsamples_left.



Improve readability of comedi_nsamples_left:
a) Reduce nesting by using more return statements.
b) Declare variables scans_left and samples_left at start of function.
c) Change type of scans_Left to unsigned long long to avoid cast.

Signed-off-by: default avatarChris Opperman <eklikeroomys@gmail.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fbe1be81
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment