hdaps: Shut up gcc uninitialized variable warnings
authorBorislav Petkov <bp@alien8.de>
Thu, 24 Nov 2011 14:01:31 +0000 (15:01 +0100)
committerMatthew Garrett <mjg@redhat.com>
Tue, 20 Mar 2012 16:02:04 +0000 (12:02 -0400)
commitb94e88bcb35b321b55ff4517c10eeec16079d46f
tree07d80f37dbc2c7017e6bda69ca58d1f0b590972f
parent2a748853ca395c48ea75baa250f7cea6f0f23dbf
hdaps: Shut up gcc uninitialized variable warnings

Turn off the following triggered with gcc 4.6.1 on Debian testing:

drivers/platform/x86/hdaps.c: In function ‘hdaps_temp2_show’:
drivers/platform/x86/hdaps.c:398:16: warning: ‘temp’ may be used uninitialized in this function [-Wuninitialized]
drivers/platform/x86/hdaps.c: In function ‘hdaps_temp1_show’:
drivers/platform/x86/hdaps.c:385:16: warning: ‘temp’ may be used uninitialized in this function [-Wuninitialized]

Cc: Frank Seidel <frank@f-seidel.de>
Cc: Matthew Garrett <mjg@redhat.com>
Cc: platform-driver-x86@vger.kernel.org
Signed-off-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/hdaps.c