OSDN Git Service

scsi: scsi_debug: remove jiffies_to_timespec
authorArnd Bergmann <arnd@arndb.de>
Mon, 27 Nov 2017 11:36:25 +0000 (12:36 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 5 Dec 2017 01:32:55 +0000 (20:32 -0500)
commit13f6b610fe0aa6c37cf6da73f1515457f3a212b7
tree87c17ad081cf48ea58926b8d41ad0e9389e6cd35
parentb6c9d54e9b7bd0da85661c7e75f55880b606fe87
scsi: scsi_debug: remove jiffies_to_timespec

There is no need to go through an intermediate timespec to convert to
ktime_t when we just want a simple multiplication. This gets rid of one
of the few users of jiffies_to_timespec, which I hope to remove as part
of the y2038 cleanup.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_debug.c