]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[SCSI] sym53c8xx: Remove sym_xpt_async_sent_bdr
authorMatthew Wilcox <matthew@wil.cx>
Fri, 5 Oct 2007 19:55:14 +0000 (15:55 -0400)
committerJames Bottomley <jejb@mulgrave.localdomain>
Tue, 23 Oct 2007 19:26:56 +0000 (15:26 -0400)
This function just printed a message to the user; move the print to its
only caller, and turn it into an starget_printk.

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/sym53c8xx_2/sym_glue.c
drivers/scsi/sym53c8xx_2/sym_glue.h
drivers/scsi/sym53c8xx_2/sym_hipd.c

index df0547afe5267cfbc6883b20ce4110a0db3b1aad..0f74aba5b2378cc4be77412785842e6fb168b4dc 100644 (file)
@@ -162,14 +162,6 @@ void sym_xpt_async_bus_reset(struct sym_hcb *np)
                            sym_name(np), sym_driver_setup.settle_delay);
 }
 
-/*
- *  Tell the SCSI layer about a BUS DEVICE RESET message sent.
- */
-void sym_xpt_async_sent_bdr(struct sym_hcb *np, int target)
-{
-       printf_notice("%s: TARGET %d has been reset.\n", sym_name(np), target);
-}
-
 /*
  *  Choose the more appropriate CAM status if 
  *  the IO encountered an extended error.
index e5bd0afcb4d86723297dcda75479dd683b0238cc..567fbe0b4f09551c2d48bc429cc75998a43a839a 100644 (file)
@@ -263,7 +263,6 @@ void sym_set_cam_result_error(struct sym_hcb *np, struct sym_ccb *cp, int resid)
 void sym_xpt_done(struct sym_hcb *np, struct scsi_cmnd *ccb);
 #define sym_print_addr(cmd, arg...) dev_info(&cmd->device->sdev_gendev , ## arg)
 void sym_xpt_async_bus_reset(struct sym_hcb *np);
-void sym_xpt_async_sent_bdr(struct sym_hcb *np, int target);
 int  sym_setup_data_and_start (struct sym_hcb *np, struct scsi_cmnd *csio, struct sym_ccb *cp);
 void sym_log_bus_error(struct Scsi_Host *);
 void sym_dump_registers(struct Scsi_Host *);
index 3cf1209301a4a5c36b5e63c0add3d16428aa1ae8..463f119f20e90c6ab46c6448be3ba4fa57c73f20 100644 (file)
@@ -3543,7 +3543,8 @@ static void sym_sir_task_recovery(struct sym_hcb *np, int num)
                 *  If we sent a BDR, make upper layer aware of that.
                 */
                if (np->abrt_msg[0] == M_RESET)
-                       sym_xpt_async_sent_bdr(np, target);
+                       starget_printk(KERN_NOTICE, starget,
+                                                       "has been reset\n");
                break;
        }