[SCSI] 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)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 26 Aug 2011 19:49:04 +0000 (12:49 -0700)
commit0b0e1d6cbcc8627970e0399df8f06edd690ec7d9
tree18f4f39869347d5ea5b61d7f7fe4503663ba2e16
parent98e2a5a3a125608505783bdb95744997f76b3c30
[SCSI] hpsa: fix problem that OBDR devices are not detected

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>
Cc: stable@kernel.org
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/hpsa.c