hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/fs/hpfs/hpfs_fn.h
....@@ -334,7 +334,7 @@
334334 * local time (HPFS) to GMT (Unix)
335335 */
336336
337
-static inline time64_t local_to_gmt(struct super_block *s, time32_t t)
337
+static inline time64_t local_to_gmt(struct super_block *s, time64_t t)
338338 {
339339 extern struct timezone sys_tz;
340340 return t + sys_tz.tz_minuteswest * 60 + hpfs_sb(s)->sb_timeshift;
....@@ -343,9 +343,7 @@
343343 static inline time32_t gmt_to_local(struct super_block *s, time64_t t)
344344 {
345345 extern struct timezone sys_tz;
346
- t = t - sys_tz.tz_minuteswest * 60 - hpfs_sb(s)->sb_timeshift;
347
-
348
- return clamp_t(time64_t, t, 0, U32_MAX);
346
+ return t - sys_tz.tz_minuteswest * 60 - hpfs_sb(s)->sb_timeshift;
349347 }
350348
351349 static inline time32_t local_get_seconds(struct super_block *s)