]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
scsi: Drop scsi_print_error()
authorSimon Glass <sjg@chromium.org>
Thu, 15 Jun 2017 03:28:23 +0000 (21:28 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 11 Jul 2017 16:08:19 +0000 (10:08 -0600)
This function is only defined by one driver and is empty. Move it into
the SCSI implementation itself. We could remove it, but it should be
useful for debugging.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
common/scsi.c
drivers/block/ahci.c
drivers/block/sandbox_scsi.c
include/scsi.h

index 4896fb9350ffd1e2896cc34839ccb7edd2770ec0..6175e507648c065995667249738f51983855bdc9 100644 (file)
@@ -48,6 +48,11 @@ static struct blk_desc scsi_dev_desc[CONFIG_SYS_SCSI_MAX_DEVICE];
 #define SCSI_MAX_READ_BLK 0xFFFF
 #define SCSI_LBA48_READ        0xFFFFFFF
 
+static void scsi_print_error(ccb *pccb)
+{
+       /* Dummy function that could print an error for debugging */
+}
+
 #ifdef CONFIG_SYS_64BIT_LBA
 void scsi_setup_read16(ccb *pccb, lbaint_t start, unsigned long blocks)
 {
index 3fa14a76b8871e5785353be38ea64a39e2d7f9f6..f4744718a8e320b09aba518361eede2703846aff 100644 (file)
@@ -1092,8 +1092,3 @@ __weak void scsi_bus_reset(void)
 {
        /*Not implement*/
 }
-
-void scsi_print_error(ccb * pccb)
-{
-       /*The ahci error info can be read in the ahci driver*/
-}
index ad961bd225a1db04a73f3cf17fbb5fddee2c28b1..f4004a350c60df98e5d69ff13ddf2098b3db1d2e 100644 (file)
@@ -23,7 +23,3 @@ int scsi_exec(ccb *pccb)
 {
        return 0;
 }
-
-void scsi_print_error(ccb *pccb)
-{
-}
index 190dacd0f2ec1688885fbe824a5f84efdc4322fd..621d9382fc3df76e113d53ad3851cf08a02d87e7 100644 (file)
@@ -163,7 +163,6 @@ typedef struct SCSI_cmd_block{
  * decleration of functions which have to reside in the LowLevel Part Driver
  */
 
-void scsi_print_error(ccb *pccb);
 int scsi_exec(ccb *pccb);
 void scsi_bus_reset(void);
 #if !defined(CONFIG_DM_SCSI)