aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
authorJohannes Thumshirn <[email protected]>2017-07-17 15:11:42 +0200
committerMartin K. Petersen <[email protected]>2017-07-17 23:03:48 -0400
commit14074aba4bcda3764c9a702b276308b89901d5b6 (patch)
treee5ecc2155d58096e0b960287b13c1a3d1472bafd /tools/perf/scripts/python/call-graph-from-sql.py
parenteeee4107546ef24c739d72645899e50fa693e9ff (diff)
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-sql.py')
0 files changed, 0 insertions, 0 deletions