summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/powerpc/include/linux/time.h
diff options
context:
space:
mode:
Diffstat (limited to 'rtemsbsd/powerpc/include/linux/time.h')
-rw-r--r--rtemsbsd/powerpc/include/linux/time.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/rtemsbsd/powerpc/include/linux/time.h b/rtemsbsd/powerpc/include/linux/time.h
index 27516a4c..442d3bfc 100644
--- a/rtemsbsd/powerpc/include/linux/time.h
+++ b/rtemsbsd/powerpc/include/linux/time.h
@@ -70,9 +70,7 @@ timespec_sub(struct timespec lhs, struct timespec rhs)
{
struct timespec ts;
- ts.tv_sec = lhs.tv_sec;
- ts.tv_nsec = lhs.tv_nsec;
- timespecsub(&ts, &rhs);
+ timespecsub(&lhs, &rhs, &ts);
return ts;
}