aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Shtylyov <s.shtylyov@omp.ru>2022-06-16 23:51:49 +0300
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>2022-06-20 08:17:33 +0900
commit2e0aee8f0a22c60a1ae0876f7233e70ad9d026b8 (patch)
tree5007eca23ed5d0855bd8fc8969d3e759a666126f
parentata: libata-eh: fix sloppy result type of ata_eh_nr_in_flight() (diff)
downloadlinux-dev-2e0aee8f0a22c60a1ae0876f7233e70ad9d026b8.tar.xz
linux-dev-2e0aee8f0a22c60a1ae0876f7233e70ad9d026b8.zip
ata: make ata_port::fastdrain_cnt *unsigned int*
*unsigned long* ata_port::fastdrain_cnt (64-bit value in a 64-bit kernel) is always assigned from the 32-bit *unsigned int* variables, thus could also be made just *unsigned int*... Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru> Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
-rw-r--r--include/linux/libata.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index a8bc88b4fe07..0269ff114f5a 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -847,7 +847,7 @@ struct ata_port {
enum ata_lpm_policy target_lpm_policy;
struct timer_list fastdrain_timer;
- unsigned long fastdrain_cnt;
+ unsigned int fastdrain_cnt;
async_cookie_t cookie;