.. | .. |
---|
334 | 334 | * local time (HPFS) to GMT (Unix) |
---|
335 | 335 | */ |
---|
336 | 336 | |
---|
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) |
---|
338 | 338 | { |
---|
339 | 339 | extern struct timezone sys_tz; |
---|
340 | 340 | return t + sys_tz.tz_minuteswest * 60 + hpfs_sb(s)->sb_timeshift; |
---|
.. | .. |
---|
343 | 343 | static inline time32_t gmt_to_local(struct super_block *s, time64_t t) |
---|
344 | 344 | { |
---|
345 | 345 | 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; |
---|
349 | 347 | } |
---|
350 | 348 | |
---|
351 | 349 | static inline time32_t local_get_seconds(struct super_block *s) |
---|