summaryrefslogtreecommitdiff
path: root/net/ax25
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-02-10 12:51:39 +0300
committerFelipe Balbi <balbi@kernel.org>2020-02-11 09:45:45 +0300
commit42cd5ffe46c1037d5d9a253c72e71a024a7bfbef (patch)
tree366848ad89d2ed2774f94fd37aedf8336faf4c85 /net/ax25
parente4bfded56cf39b8d02733c1e6ef546b97961e18a (diff)
downloadlinux-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