]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/block/DAC960: fix -Wuninitialized warning
authorDanny Kukawka <danny.kukawka@bisect.de>
Fri, 2 Mar 2012 09:48:35 +0000 (10:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Dec 2012 20:59:12 +0000 (12:59 -0800)
commit6ce2a94fa9a777fd21ac9aa42015a6d0b788c749
tree7f8f6f3e734b228db9b207aa7b389b0052b1727d
parenta0bdb13484eed7a00069bb477c7d9ebd38e4b911
drivers/block/DAC960: fix -Wuninitialized warning

commit cecd353a02fb1405c8a72a324b26b5acf97e7411 upstream.

Set CommandMailbox with memset before use it. Fix for:

drivers/block/DAC960.c: In function ‘DAC960_V1_EnableMemoryMailboxInterface’:
arch/x86/include/asm/io.h:61:1: warning: ‘CommandMailbox.Bytes[12]’
 may be used uninitialized in this function [-Wuninitialized]
drivers/block/DAC960.c:1175:30: note: ‘CommandMailbox.Bytes[12]’
 was declared here

Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/block/DAC960.c