diff options
| author | Johannes Thumshirn <[email protected]> | 2017-07-17 13:11:42 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2017-07-18 03:03:48 +0000 |
| commit | 14074aba4bcda3764c9a702b276308b89901d5b6 (patch) | |
| tree | e5ecc2155d58096e0b960287b13c1a3d1472bafd /tools/perf/scripts/python/call-graph-from-postgresql.py | |
| parent | scsi: smartpqi: limit transfer length to 1MB (diff) | |
| download | kernel-14074aba4bcda3764c9a702b276308b89901d5b6.tar.gz kernel-14074aba4bcda3764c9a702b276308b89901d5b6.zip | |
scsi: sg: fix static checker warning in sg_is_valid_dxfer
dxfer_len is an unsigned int and we always assign a value > 0 to it, so
it doesn't make any sense to check if it is < 0. We can't really check
dxferp as well as we have both NULL and not NULL cases in the possible
call paths.
So just return true for SG_DXFER_FROM_DEV transfer in
sg_is_valid_dxfer().
Signed-off-by: Johannes Thumshirn <[email protected]>
Reported-by: Colin Ian King <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Cc: Douglas Gilbert <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions
