From f70575805708cabdedea7498aaa3f710fde4d920 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Wed, 31 Jan 2024 03:29:01 +0000 Subject: [PATCH] add lvds1024*800 --- kernel/drivers/scsi/snic/snic_trc.c | 15 ++------------- 1 files changed, 2 insertions(+), 13 deletions(-) diff --git a/kernel/drivers/scsi/snic/snic_trc.c b/kernel/drivers/scsi/snic/snic_trc.c index fc60c93..f23fe2f 100644 --- a/kernel/drivers/scsi/snic/snic_trc.c +++ b/kernel/drivers/scsi/snic/snic_trc.c @@ -126,7 +126,7 @@ int tbuf_sz = 0, ret; tbuf_sz = (snic_trace_max_pages * PAGE_SIZE); - tbuf = vmalloc(tbuf_sz); + tbuf = vzalloc(tbuf_sz); if (!tbuf) { SNIC_ERR("Failed to Allocate Trace Buffer Size. %d\n", tbuf_sz); SNIC_ERR("Trace Facility not enabled.\n"); @@ -135,16 +135,10 @@ return ret; } - memset(tbuf, 0, tbuf_sz); trc->buf = (struct snic_trc_data *) tbuf; spin_lock_init(&trc->lock); - ret = snic_trc_debugfs_init(); - if (ret) { - SNIC_ERR("Failed to create Debugfs Files.\n"); - - goto error; - } + snic_trc_debugfs_init(); trc->max_idx = (tbuf_sz / SNIC_TRC_ENTRY_SZ); trc->rd_idx = trc->wr_idx = 0; @@ -152,11 +146,6 @@ SNIC_INFO("Trace Facility Enabled.\n Trace Buffer SZ %lu Pages.\n", tbuf_sz / PAGE_SIZE); ret = 0; - - return ret; - -error: - snic_trc_free(); return ret; } /* end of snic_trc_init */ -- Gitblit v1.6.2