summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-06-15 03:28:23 (GMT)
committerSimon Glass <sjg@chromium.org>2017-07-11 16:08:19 (GMT)
commita6fb185c70d8ac455ed16d3bae23c3727db07116 (patch)
treeda561577998fc6ab82be60f43ae79d6271f557d9 /common
parentb8beb6b463676f586a5481993590cd8a6e8c5855 (diff)
downloadu-boot-fsl-qoriq-a6fb185c70d8ac455ed16d3bae23c3727db07116.tar.xz
scsi: Drop scsi_print_error()
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>
Diffstat (limited to 'common')
-rw-r--r--common/scsi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/scsi.c b/common/scsi.c
index 4896fb9..6175e50 100644
--- a/common/scsi.c
+++ b/common/scsi.c
@@ -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)
{