alpha: kernel: osf_sys: Set 'kts.tv_nsec' only when 'tv' has effect
authorChen Gang <xili_gchen_5257@hotmail.com>
Mon, 18 May 2015 04:37:08 +0000 (12:37 +0800)
committerMatt Turner <mattst88@gmail.com>
Tue, 26 May 2015 17:01:51 +0000 (10:01 -0700)
The related warning:

    CC      init/do_mounts.o
  arch/alpha/kernel/osf_sys.c: In function 'SyS_osf_settimeofday':
  arch/alpha/kernel/osf_sys.c:1028:14: warning: 'kts.tv_nsec' may be used uninitialized in this function [-Wmaybe-uninitialized]
    kts.tv_nsec *= 1000;
                ^
  arch/alpha/kernel/osf_sys.c:1016:18: note: 'kts' was declared here
    struct timespec kts;
                    ^

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: Matt Turner <mattst88@gmail.com>
arch/alpha/kernel/osf_sys.c

Simple merge