bflsc remove unused commented out code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
diff --git a/driver-bflsc.c b/driver-bflsc.c
index 8213e9c..f215751 100644
--- a/driver-bflsc.c
+++ b/driver-bflsc.c
@@ -1585,46 +1585,6 @@ re_send:
break;
}
-/*
- err = write_to_dev(bflsc, dev, BFLSC_QJOB, BFLSC_QJOB_LEN, &amount, C_REQUESTQUEJOB);
- if (err < 0 || amount != BFLSC_QJOB_LEN) {
- mutex_unlock(&(bflsc->device_mutex));
- bflsc_applog(bflsc, dev, C_REQUESTQUEJOB, amount, err);
- goto out;
- }
-
- if (!getok(bflsc, C_REQUESTQUEJOBSTATUS, &err, &amount)) {
- mutex_unlock(&(bflsc->device_mutex));
- bflsc_applog(bflsc, dev, C_REQUESTQUEJOBSTATUS, amount, err);
- goto out;
- }
-
- len = sizeof(struct FullNonceRangeJob);
-
- err = write_to_dev(bflsc, dev, (char *)&data, len, &amount, C_QUEJOB);
- if (err < 0 || amount != len) {
- mutex_unlock(&(bflsc->device_mutex));
- bflsc_applog(bflsc, dev, C_QUEJOB, amount, err);
- goto out;
- }
-
- if (!getokerr(bflsc, C_QUEJOBSTATUS, &err, &amount, buf, sizeof(buf))) {
- // TODO: check for QUEUE FULL and set work_queued to sc_info->que_size
- // and report a code bug LOG_ERR - coz it should never happen
-
- // Try twice
- if (try++ < 1 && amount > 1 &&
- strstr(buf, BFLSC_TIMEOUT))
- goto re_send;
-
- mutex_unlock(&(bflsc->device_mutex));
- bflsc_applog(bflsc, dev, C_QUEJOBSTATUS, amount, err);
- goto out;
- }
-
- mutex_unlock(&(bflsc->device_mutex));
-*/
-
wr_lock(&(sc_info->stat_lock));
sc_info->sc_devs[dev].work_queued++;
wr_unlock(&(sc_info->stat_lock));