aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2017-12-09 00:34:14 +0000
committerMartin K. Petersen <[email protected]>2017-12-11 21:37:08 -0500
commit3c62ecda0e24f4ae84181184457d4e37f5250c7f (patch)
tree24ed2f0f85c2b1f0a5fdb90a07ed15b39c6148b6 /tools/perf/scripts/python
parent8c5a50e8e7ad812a62f7ccf28d9a5e74fddf3000 (diff)
scsi: arcmsr: remove redundant check for secs < 0
The check for secs being less than zero is redundant for two reasons. Firstly, secs is unsigned so the check is always going to be false. Secondly, if secs was signed the proceeding calculation of secs is never going to be negative. Hence we can remove this redundant check and day and secs re-adjustment. Detected by static analysis with smatch: arcmsr_set_iop_datetime() warn: unsigned 'secs' is never less than zero. Signed-off-by: Colin Ian King <[email protected]> Acked-by: Ching Huang <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions