@@ -109,16 +109,15 @@ snic_trc_init(void)
{
struct snic_trc *trc = &snic_glob->trc;
void *tbuf = NULL;
- int tbuf_sz = 0, ret;
+ int tbuf_sz = 0;
tbuf_sz = (snic_trace_max_pages * PAGE_SIZE);
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");
- ret = -ENOMEM;
- return ret;
+ return -ENOMEM;
}
trc->buf = (struct snic_trc_data *) tbuf;
@@ -131,9 +130,8 @@ snic_trc_init(void)
trc->enable = true;
SNIC_INFO("Trace Facility Enabled.\n Trace Buffer SZ %lu Pages.\n",
tbuf_sz / PAGE_SIZE);
- ret = 0;
- return ret;
+ return 0;
} /* end of snic_trc_init */
/*