aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorJohannes Thumshirn <[email protected]>2017-07-17 13:11:42 +0000
committerMartin K. Petersen <[email protected]>2017-07-18 03:03:48 +0000
commit14074aba4bcda3764c9a702b276308b89901d5b6 (patch)
treee5ecc2155d58096e0b960287b13c1a3d1472bafd /tools/perf/scripts/python/call-graph-from-postgresql.py
parentscsi: smartpqi: limit transfer length to 1MB (diff)
downloadkernel-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