aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorYueHaibing <[email protected]>2019-02-19 15:04:28 +0800
committerArnd Bergmann <[email protected]>2019-02-20 17:57:47 +0100
commit62ade1bed27c26c2ea9280174ae6d6c7a9e825b2 (patch)
tree6c8d01c903e4f1d9307059a2a1613a98cc03564b /tools/perf/scripts/python/export-to-sqlite.py
parent8deed847445a8fb619689988a24c0f8df1369a58 (diff)
tee: optee: Fix unsigned comparison with less than zero
The return from the call to tee_client_invoke_func can be a negative error code however this is being assigned to an unsigned variable 'ret' hence the check is always false. Fix this by making 'ret' an int. Detected by Coccinelle ("Unsigned expression compared with zero: ret < 0") Fixes: c3fa24af9244 ("tee: optee: add TEE bus device enumeration support") Signed-off-by: YueHaibing <[email protected]> Reviewed-by: Sumit Garg <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions