kernel: Fix build errors due to uninitialized variables
Newer gcc version requires all variables to be initialized.
Change-Id: I2f3029d17fab36ec6612552d4d2648e317f261d8
Signed-off-by: Siddeswar Alugant <salugant@codeaurora.org>
Signed-off-by: Bruce Levy <blevy@codeaurora.org>
diff --git a/kernel/compat.c b/kernel/compat.c
index 333d364..1cd7051 100644
--- a/kernel/compat.c
+++ b/kernel/compat.c
@@ -109,7 +109,7 @@ COMPAT_SYSCALL_DEFINE2(settimeofday, struct compat_timeval __user *, tv,
struct timezone __user *, tz)
{
struct timeval user_tv;
- struct timespec new_ts;
+ struct timespec new_ts = {0};
struct timezone new_tz;
if (tv) {