linux-stable/drivers/scsi/arcmsr
Colin Ian King 3c62ecda0e 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 <colin.king@canonical.com>
Acked-by: Ching Huang <ching2048@areca.com.tw>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-12-11 21:37:08 -05:00
..
arcmsr.h scsi: arcmsr: Update driver version to v1.40.00.04-20171130 2017-12-06 19:32:41 -05:00
arcmsr_attr.c arcmsr: add const to bin_attribute structures 2017-08-10 19:40:50 -04:00
arcmsr_hba.c scsi: arcmsr: remove redundant check for secs < 0 2017-12-11 21:37:08 -05:00
Makefile