hpsa: fix problem that OBDR devices are not detected
authorStephen M. Cameron <scameron@beardog.cce.hp.com>
Tue, 9 Aug 2011 13:17:30 +0000 (08:17 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 Oct 2011 18:40:23 +0000 (11:40 -0700)
commit14e09ccdeed3b3b0c173475c323903d9cb1a5b13
tree4990fd8966563ae0cbb202125b858bc8fe51fc54
parent9f89c9607925aabb7352a3f50b69c7bfdb2c1cbb
hpsa: fix problem that OBDR devices are not detected

commit 0b0e1d6cbcc8627970e0399df8f06edd690ec7d9 upstream.

The test to detect OBDR ("One Button Disaster Recovery")
cd-rom devices was comparing against uninitialized data.

Fixed by moving the test for the device to where the
inquiry data is collected, and uninitialized variable
altogether as it wasn't really being used.

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/hpsa.c