diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2018-06-22 21:20:35 +0200 | 
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2018-06-22 21:20:35 +0200 | 
| commit | 7731b8bc94e599c9a79e428f3359ff2c34b7576a (patch) | |
| tree | 879f18ccbe274122f2d4f095b43cbc7f953e0ada /fs/udf/udftime.c | |
| parent | 48e315618dc4dc8904182cd221e3d395d5d97005 (diff) | |
| parent | 9ffc59d57228d74809700be6f7ecb1db10292f05 (diff) | |
Merge branch 'linus' into x86/urgent
Required to queue a dependent fix.
Diffstat (limited to 'fs/udf/udftime.c')
| -rw-r--r-- | fs/udf/udftime.c | 9 | 
1 files changed, 2 insertions, 7 deletions
diff --git a/fs/udf/udftime.c b/fs/udf/udftime.c index 0927a4b2ecaf..67b33ac5d41b 100644 --- a/fs/udf/udftime.c +++ b/fs/udf/udftime.c @@ -40,7 +40,7 @@  #include <linux/kernel.h>  #include <linux/time.h> -struct timespec * +void  udf_disk_stamp_to_time(struct timespec *dest, struct timestamp src)  {  	u16 typeAndTimezone = le16_to_cpu(src.typeAndTimezone); @@ -67,10 +67,9 @@ udf_disk_stamp_to_time(struct timespec *dest, struct timestamp src)  	 * recorded with bogus sub-second values.  	 */  	dest->tv_nsec %= NSEC_PER_SEC; -	return dest;  } -struct timestamp * +void  udf_time_to_disk_stamp(struct timestamp *dest, struct timespec ts)  {  	long seconds; @@ -79,9 +78,6 @@ udf_time_to_disk_stamp(struct timestamp *dest, struct timespec ts)  	offset = -sys_tz.tz_minuteswest; -	if (!dest) -		return NULL; -  	dest->typeAndTimezone = cpu_to_le16(0x1000 | (offset & 0x0FFF));  	seconds = ts.tv_sec + offset * 60; @@ -97,7 +93,6 @@ udf_time_to_disk_stamp(struct timestamp *dest, struct timespec ts)  					dest->centiseconds * 10000) / 100;  	dest->microseconds = (ts.tv_nsec / 1000 - dest->centiseconds * 10000 -  			      dest->hundredsOfMicroseconds * 100); -	return dest;  }  /* EOF */  | 
