vme: tsi148: silence uninitialized variable warning
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>
Mon, 5 Oct 2015 03:59:17 +0000 (06:59 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Oct 2015 09:59:34 +0000 (10:59 +0100)
commitd3337eb1e113bed287b58677e755c807be88d507
tree46802ce9dca14c17f8d020e2e1149bba071748ed
parent448535a35010253f21ed913a05abe3d0adb47743
vme: tsi148: silence uninitialized variable warning

The warning is a false positive.

drivers/vme/bridges/vme_tsi148.c: In function 'tsi148_master_write':
drivers/vme/bridges/vme_tsi148.c:1358:31: warning: 'handler' may be used uninitialized in this function [-Wmaybe-uninitialized]
   vme_unregister_error_handler(handler);
                               ^
drivers/vme/bridges/vme_tsi148.c: In function 'tsi148_master_read':
drivers/vme/bridges/vme_tsi148.c:1260:31: warning: 'handler' may be used uninitialized in this function [-Wmaybe-uninitialized]
   vme_unregister_error_handler(handler);
                               ^

Fixes: 0b0496625715 ("vme: change bus error handling scheme")
Signed-off-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/vme/bridges/vme_tsi148.c