rt2x00usb: initialize the read value in case of failure
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 12 Mar 2015 14:35:44 +0000 (15:35 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 16 Mar 2015 16:05:56 +0000 (18:05 +0200)
commite4fcfaf802bf75e20c65a501edc5c159e812ebd3
treecfb6fa4e8175f6ec18990d70e7681b6ebeb9c824
parent6e9344fd8e90ff0bd8e74c15ec7c21eae7d54bd3
rt2x00usb: initialize the read value in case of failure

My understanding ist that rt2x00usb_register_read() is void and so the
reader is unaware of read errors and assumes that whatever was on the
stack as it was about to read.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rt2x00/rt2x00usb.h