diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/constants.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/constants.c b/drivers/scsi/constants.c index aee62f60b43d..e2068a2621c4 100644 --- a/drivers/scsi/constants.c +++ b/drivers/scsi/constants.c | |||
@@ -1271,6 +1271,7 @@ scsi_extd_sense_format(unsigned char asc, unsigned char ascq, const char **fmt) | |||
1271 | int i; | 1271 | int i; |
1272 | unsigned short code = ((asc << 8) | ascq); | 1272 | unsigned short code = ((asc << 8) | ascq); |
1273 | 1273 | ||
1274 | *fmt = NULL; | ||
1274 | for (i = 0; additional[i].text; i++) | 1275 | for (i = 0; additional[i].text; i++) |
1275 | if (additional[i].code12 == code) | 1276 | if (additional[i].code12 == code) |
1276 | return additional[i].text; | 1277 | return additional[i].text; |
@@ -1282,6 +1283,8 @@ scsi_extd_sense_format(unsigned char asc, unsigned char ascq, const char **fmt) | |||
1282 | return additional2[i].str; | 1283 | return additional2[i].str; |
1283 | } | 1284 | } |
1284 | } | 1285 | } |
1286 | #else | ||
1287 | *fmt = NULL; | ||
1285 | #endif | 1288 | #endif |
1286 | return NULL; | 1289 | return NULL; |
1287 | } | 1290 | } |