]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: Silence uninitialized variable warning in dbl_to_sgl_fcnvff()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 6 Mar 2018 10:06:19 +0000 (13:06 +0300)
committerHelge Deller <deller@gmx.de>
Tue, 27 Mar 2018 16:52:21 +0000 (18:52 +0200)
commita91b6ec123890cac6836622c3ae18079d581037e
tree2107ace84d2f597607a3b060b863ef1f5f39ee5c
parentbc03d820ebcd33c31f4867faa44ee9e45b736fe0
parisc: Silence uninitialized variable warning in dbl_to_sgl_fcnvff()

Smatch warns that is_tiny can be used uninitialized:

    arch/parisc/math-emu/fcnvff.c:297 dbl_to_sgl_fcnvff()
    error: uninitialized symbol 'is_tiny'.

This code is very old so that suggests the bug doesn't have a huge
affect in real life.  But I've read the code and it seems like a
reasonable warning.  Either way it should be harmless to initialize it
to false and silence the static checker warning.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/math-emu/fcnvff.c