ata: libata: fix parameter type of ata_deadline()
authorSergey Shtylyov <s.shtylyov@omp.ru>
Sat, 29 Jul 2023 20:17:46 +0000 (23:17 +0300)
committerDamien Le Moal <dlemoal@kernel.org>
Wed, 2 Aug 2023 08:37:06 +0000 (17:37 +0900)
ata_deadline() passes its 'unsigned long timeout_msecs'  parameter verbatim
to msecs_to_jiffies() which takes just 'unsigned int' -- eliminate unneeded
implicit cast...

Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
include/linux/libata.h

index 820f7a3..d9edb3d 100644 (file)
@@ -1876,7 +1876,7 @@ static inline int ata_check_ready(u8 status)
 }
 
 static inline unsigned long ata_deadline(unsigned long from_jiffies,
-                                        unsigned long timeout_msecs)
+                                        unsigned int timeout_msecs)
 {
        return from_jiffies + msecs_to_jiffies(timeout_msecs);
 }