From: H Hartley Sweeten Date: Thu, 26 Sep 2013 17:29:20 +0000 (-0700) Subject: staging: comedi: dt2801: fix using uninitialized variable warnings X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~62^2~562 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3389c99eb80d3d265b60a6b9822792b15aa14758;p=pandora-kernel.git staging: comedi: dt2801: fix using uninitialized variable warnings As pointed out by Fengguang Wu, the calls to dt2801_readdata() return the data read thru a pointer (the address of a local variable) passed as a parameter. If this local variable is not initialized it produces a warning during the build of the form: drivers/staging/comedi/drivers/dt2801.c: In function 'dt2801_ai_insn_read': drivers/staging/comedi/drivers/dt2801.c:273:14: warning: 'hb' is used uninitialized in this function [-Wuninitialized] Fix these warning by making sure the local variables are initialized. Signed-off-by: H Hartley Sweeten Reported-by: Fengguang Wu Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed