]> git.baikalelectronics.ru Git - kernel.git/commit
udf: Simplify calls to udf_disk_stamp_to_time
authorDeepa Dinamani <deepa.kernel@gmail.com>
Thu, 10 May 2018 15:26:17 +0000 (08:26 -0700)
committerDeepa Dinamani <deepa.kernel@gmail.com>
Fri, 25 May 2018 22:31:14 +0000 (15:31 -0700)
commit541b2e17f14f7aacbc697cee3953607e7e36327f
tree43e5e612c0386d2e4a3afd59cf5c9cecccbf393b
parent1872376471c349d3e153337e963ade6230723a5f
udf: Simplify calls to udf_disk_stamp_to_time

Subsequent patches in the series convert inode timestamps
to use struct timespec64 instead of struct timespec as
part of solving the y2038 problem.

commit 34fdba8fdb4a ("udf: Convert udf_disk_stamp_to_time() to use mktime64()")
eliminated the NULL return condition from udf_disk_stamp_to_time().
udf_time_to_disk_time() is always called with a valid dest pointer and
the return value is ignored.
Further, caller can as well check the dest pointer being passed in rather
than return argument.
Make both the functions return void.

This will make the inode timestamp conversion simpler.

Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Cc: jack@suse.com
----
Changes from v1:
* fixed the pointer error pointed by Jan
fs/udf/inode.c
fs/udf/super.c
fs/udf/udfdecl.h
fs/udf/udftime.c