diff options
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_os.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 8ea927788b3f..3b1b68c1f6f2 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c | |||
@@ -2458,23 +2458,6 @@ qla2x00_post_aen_work(struct scsi_qla_host *vha, enum fc_host_event_code code, | |||
2458 | return qla2x00_post_work(vha, e, 1); | 2458 | return qla2x00_post_work(vha, e, 1); |
2459 | } | 2459 | } |
2460 | 2460 | ||
2461 | int | ||
2462 | qla2x00_post_hwe_work(struct scsi_qla_host *vha, uint16_t code, uint16_t d1, | ||
2463 | uint16_t d2, uint16_t d3) | ||
2464 | { | ||
2465 | struct qla_work_evt *e; | ||
2466 | |||
2467 | e = qla2x00_alloc_work(vha, QLA_EVT_HWE_LOG, 1); | ||
2468 | if (!e) | ||
2469 | return QLA_FUNCTION_FAILED; | ||
2470 | |||
2471 | e->u.hwe.code = code; | ||
2472 | e->u.hwe.d1 = d1; | ||
2473 | e->u.hwe.d2 = d2; | ||
2474 | e->u.hwe.d3 = d3; | ||
2475 | return qla2x00_post_work(vha, e, 1); | ||
2476 | } | ||
2477 | |||
2478 | static void | 2461 | static void |
2479 | qla2x00_do_work(struct scsi_qla_host *vha) | 2462 | qla2x00_do_work(struct scsi_qla_host *vha) |
2480 | { | 2463 | { |
@@ -2492,10 +2475,6 @@ qla2x00_do_work(struct scsi_qla_host *vha) | |||
2492 | fc_host_post_event(vha->host, fc_get_event_number(), | 2475 | fc_host_post_event(vha->host, fc_get_event_number(), |
2493 | e->u.aen.code, e->u.aen.data); | 2476 | e->u.aen.code, e->u.aen.data); |
2494 | break; | 2477 | break; |
2495 | case QLA_EVT_HWE_LOG: | ||
2496 | qla2xxx_hw_event_log(vha, e->u.hwe.code, e->u.hwe.d1, | ||
2497 | e->u.hwe.d2, e->u.hwe.d3); | ||
2498 | break; | ||
2499 | } | 2478 | } |
2500 | if (e->flags & QLA_EVT_FLAG_FREE) | 2479 | if (e->flags & QLA_EVT_FLAG_FREE) |
2501 | kfree(e); | 2480 | kfree(e); |