hpsa.c (ecd9aad402765abce04a96b8d1ed15163ca6c8a1) | hpsa.c (e89c0ae7babc3e702a9da128b3ac1eb04ed73c2c) |
---|---|
1/* 2 * Disk Array driver for HP Smart Array SAS controllers 3 * Copyright 2000, 2009 Hewlett-Packard Development Company, L.P. 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; version 2 of the License. 8 * --- 1349 unchanged lines hidden (view full) --- 1358 unsigned char scsi3addr[8]; 1359 struct ErrorInfo *ei; 1360 1361 c = cmd_special_alloc(h); 1362 if (c == NULL) { /* trouble... */ 1363 dev_err(&h->pdev->dev, "cmd_special_alloc returned NULL!\n"); 1364 return -1; 1365 } | 1/* 2 * Disk Array driver for HP Smart Array SAS controllers 3 * Copyright 2000, 2009 Hewlett-Packard Development Company, L.P. 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; version 2 of the License. 8 * --- 1349 unchanged lines hidden (view full) --- 1358 unsigned char scsi3addr[8]; 1359 struct ErrorInfo *ei; 1360 1361 c = cmd_special_alloc(h); 1362 if (c == NULL) { /* trouble... */ 1363 dev_err(&h->pdev->dev, "cmd_special_alloc returned NULL!\n"); 1364 return -1; 1365 } |
1366 1367 memset(&scsi3addr[0], 0, 8); /* address the controller */ 1368 | 1366 /* address the controller */ 1367 memset(scsi3addr, 0, sizeof(scsi3addr)); |
1369 fill_cmd(c, logical ? HPSA_REPORT_LOG : HPSA_REPORT_PHYS, h, 1370 buf, bufsize, 0, scsi3addr, TYPE_CMD); 1371 if (extended_response) 1372 c->Request.CDB[1] = extended_response; 1373 hpsa_scsi_do_simple_cmd_with_retry(h, c, PCI_DMA_FROMDEVICE); 1374 ei = c->err_info; 1375 if (ei->CommandStatus != 0 && 1376 ei->CommandStatus != CMD_DATA_UNDERRUN) { --- 2157 unchanged lines hidden --- | 1368 fill_cmd(c, logical ? HPSA_REPORT_LOG : HPSA_REPORT_PHYS, h, 1369 buf, bufsize, 0, scsi3addr, TYPE_CMD); 1370 if (extended_response) 1371 c->Request.CDB[1] = extended_response; 1372 hpsa_scsi_do_simple_cmd_with_retry(h, c, PCI_DMA_FROMDEVICE); 1373 ei = c->err_info; 1374 if (ei->CommandStatus != 0 && 1375 ei->CommandStatus != CMD_DATA_UNDERRUN) { --- 2157 unchanged lines hidden --- |