Re: [PATCH] drivers/char/random.c: fix uninitialized value warning

2018-07-18 Thread Arnd Bergmann
On Wed, Jul 18, 2018 at 9:11 AM, Constantine Shulyupin wrote: > Local variable t should be initialized by arch_get_random_int. > Actually on failure of arch_get_random_int, value is not used. > So, just keep the build clean with less warnings. > > warning: > drivers/char/random.c: In function ‘wri

Re: [PATCH] drivers/char/random.c: fix uninitialized value warning

2018-07-18 Thread Theodore Y. Ts'o
On Wed, Jul 18, 2018 at 10:11:52AM +0300, Constantine Shulyupin wrote: > Local variable t should be initialized by arch_get_random_int. > Actually on failure of arch_get_random_int, value is not used. > So, just keep the build clean with less warnings. > > warning: > drivers/char/random.c: In func

[PATCH] drivers/char/random.c: fix uninitialized value warning

2018-07-18 Thread Constantine Shulyupin
Local variable t should be initialized by arch_get_random_int. Actually on failure of arch_get_random_int, value is not used. So, just keep the build clean with less warnings. warning: drivers/char/random.c: In function ‘write_pool.constprop’: drivers/char/random.c:1912:11: warning: ‘t’ may be use