ata: ahci_xgene: fix parameter types of xgene_ahci_poll_reg_val()
authorSergey Shtylyov <s.shtylyov@omp.ru>
Sat, 29 Jul 2023 20:17:52 +0000 (23:17 +0300)
committerDamien Le Moal <dlemoal@kernel.org>
Wed, 2 Aug 2023 08:37:07 +0000 (17:37 +0900)
xgene_ahci_poll_reg_val() passes its 'unsigned long {interval|timeout}'
params verbatim to ata_{msleep|deadline}() that just take 'unsigned int'
param for the time intervals in ms -- eliminate unneeded implicit cast...

Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
drivers/ata/ahci_xgene.c

index 8e88c86a2a78c00a1e02022b70149fd2b76f5292..ccef5e63bdf9d916bda97eb96b1957eda0635bf5 100644 (file)
@@ -110,9 +110,8 @@ static int xgene_ahci_init_memram(struct xgene_ahci_context *ctx)
  * @timeout : timeout for achieving the value.
  */
 static int xgene_ahci_poll_reg_val(struct ata_port *ap,
-                                  void __iomem *reg, unsigned
-                                  int val, unsigned long interval,
-                                  unsigned long timeout)
+                                  void __iomem *reg, unsigned int val,
+                                  unsigned int interval, unsigned int timeout)
 {
        unsigned long deadline;
        unsigned int tmp;