diff options
| author | Dan Carpenter <[email protected]> | 2018-10-01 19:44:58 +0300 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2018-10-13 22:21:25 +1100 |
| commit | 014704e6f54189a203cc14c7c0bb411b940241bc (patch) | |
| tree | 5e1a5e8e79294eab51e9cc2d5f54bfcb76c85f89 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 6233b6da0c00a9768bdab1c502115b960929889a (diff) | |
powerpc: Fix signedness bug in update_flash_db()
The "count < sizeof(struct os_area_db)" comparison is type promoted to
size_t so negative values of "count" are treated as very high values
and we accidentally return success instead of a negative error code.
This doesn't really change runtime much but it fixes a static checker
warning.
Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Geoff Levand <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions