[SCSI] qla2xxx: Return blank sysfs string on initial get thermal failure.
authorJoe Carnuccio <joe.carnuccio@qlogic.com>
Thu, 9 Feb 2012 19:15:40 +0000 (11:15 -0800)
committerJames Bottomley <JBottomley@Parallels.com>
Sun, 19 Feb 2012 14:17:17 +0000 (08:17 -0600)
commitaa61556fa3cf7d0e39a67dc5b043b96519ce3726
tree7fd4d065f1cac7fa1993dfc8e709c2def367fbae
parentb3b02e6e9512636d5a1839b325e4722e80cda90d
[SCSI] qla2xxx: Return blank sysfs string on initial get thermal failure.

When thermal temperature initially fails, return a blank string to the
sysfs interface.  This fixes the initial display of 0.00 followed by
subsequent display of blank line; the initial 0.00 should have not
displayed for cards that do not support thermal temperature.

Signed-off-by: Joe Carnuccio <joe.carnuccio@qlogic.com>
Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla2xxx/qla_attr.c