diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-02-10 12:51:39 +0300 |
---|---|---|
committer | Felipe Balbi <balbi@kernel.org> | 2020-02-11 09:45:45 +0300 |
commit | 42cd5ffe46c1037d5d9a253c72e71a024a7bfbef (patch) | |
tree | 366848ad89d2ed2774f94fd37aedf8336faf4c85 /net/ax25 | |
parent | e4bfded56cf39b8d02733c1e6ef546b97961e18a (diff) | |
download | linux-42cd5ffe46c1037d5d9a253c72e71a024a7bfbef.tar.xz |
usb: dwc3: debug: fix string position formatting mixup with ret and len
Currently the string formatting is mixing up the offset of ret and
len. Re-work the code to use just len, remove ret and use scnprintf
instead of snprintf and len position accumulation where required.
Remove the -ve return check since scnprintf never returns a failure
-ve size. Also break overly long lines to clean up checkpatch
warnings.
Addresses-Coverity: ("Unused value")
Fixes: 1381a5113caf ("usb: dwc3: debug: purge usage of strcat")
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Diffstat (limited to 'net/ax25')
0 files changed, 0 insertions, 0 deletions