libsigrok/src/hardware
Lars-Peter Clausen efa9840222 Remove unnecessary driver context checks
Some drivers check in some of their driver callbacks if the driver has been
initialized and return an error if it has not.

For the scan() callback the sigrok core checks if the driver has been
initialized and if not returns an error. So it is not possible that the
scan() callback gets called if the driver is not initialized. Without the
scan() callback succeeding it is not possible to get a reference to a
device which is associated with the driver, so it is not possible that any
of the device specific callbacks is called without the driver first being
initialized either.

In conclusion these checks are not necessary since they never evaluate to
true and can be dropped. If they should ever become necessary they should
be done in the sigrok core so all drivers and all callbacks are equally
handled.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2016-05-04 01:33:02 +02:00
..
agilent-dmm Drop SR_CONF_SET flag from SR_CONF_CONTINUOUS options 2016-05-03 21:49:02 +02:00
appa-55ii Drop SR_CONF_SET flag from SR_CONF_CONTINUOUS options 2016-05-03 21:49:02 +02:00
arachnid-labs-re-load-pro Drop SR_CONF_SET flag from SR_CONF_CONTINUOUS options 2016-05-03 21:49:02 +02:00
asix-sigma Introduce standard implementation of the dev_list() callback 2016-05-03 21:25:16 +02:00
atten-pps3xxx Drop SR_CONF_SET flag from SR_CONF_CONTINUOUS options 2016-05-03 21:49:02 +02:00
baylibre-acme Drop SR_CONF_SET flag from SR_CONF_CONTINUOUS options 2016-05-03 21:49:02 +02:00
beaglelogic Introduce standard implementation of the dev_list() callback 2016-05-03 21:25:16 +02:00
brymen-bm86x Introduce standard implementation of the dev_list() callback 2016-05-03 21:25:16 +02:00
brymen-dmm Introduce standard implementation of the dev_list() callback 2016-05-03 21:25:16 +02:00
cem-dt-885x Drop SR_CONF_SET flag from SR_CONF_CONTINUOUS options 2016-05-03 21:49:02 +02:00
center-3xx Drop SR_CONF_SET flag from SR_CONF_CONTINUOUS options 2016-05-03 21:49:02 +02:00
chronovu-la Introduce standard implementation of the dev_list() callback 2016-05-03 21:25:16 +02:00
colead-slm Introduce standard implementation of the dev_list() callback 2016-05-03 21:25:16 +02:00
conrad-digi-35-cpu Introduce standard implementation of the dev_list() callback 2016-05-03 21:25:16 +02:00
demo Drop SR_CONF_SET flag from SR_CONF_CONTINUOUS options 2016-05-03 21:49:02 +02:00
deree-de5000 Introduce standard implementation of the dev_list() callback 2016-05-03 21:25:16 +02:00
fluke-dmm Introduce standard implementation of the dev_list() callback 2016-05-03 21:25:16 +02:00
ftdi-la Drop SR_CONF_SET flag from SR_CONF_CONTINUOUS options 2016-05-03 21:49:02 +02:00
fx2lafw Drop SR_CONF_SET flag from SR_CONF_CONTINUOUS options 2016-05-03 21:49:02 +02:00
gmc-mh-1x-2x Introduce standard implementation of the dev_list() callback 2016-05-03 21:25:16 +02:00
gwinstek-gds-800 Introduce standard implementation of the dev_list() callback 2016-05-03 21:25:16 +02:00
hameg-hmo Introduce standard implementation of the dev_list() callback 2016-05-03 21:25:16 +02:00
hantek-6xxx Introduce standard implementation of the dev_list() callback 2016-05-03 21:25:16 +02:00
hantek-dso Drop SR_CONF_SET flag from SR_CONF_CONTINUOUS options 2016-05-03 21:49:02 +02:00
hp-3457a Drop SR_CONF_SET flag from SR_CONF_CONTINUOUS options 2016-05-03 21:49:02 +02:00
hung-chang-dso-2100 Introduce standard implementation of the dev_list() callback 2016-05-03 21:25:16 +02:00
ikalogic-scanalogic2 Remove unnecessary driver context checks 2016-05-04 01:33:02 +02:00
ikalogic-scanaplus Introduce standard implementation of the dev_list() callback 2016-05-03 21:25:16 +02:00
kecheng-kc-330b Remove unnecessary driver context checks 2016-05-04 01:33:02 +02:00
kern-scale Introduce standard implementation of the dev_list() callback 2016-05-03 21:25:16 +02:00
korad-kaxxxxp Introduce standard implementation of the dev_list() callback 2016-05-03 21:25:16 +02:00
lascar-el-usb Remove unnecessary driver context checks 2016-05-04 01:33:02 +02:00
lecroy-logicstudio Remove unnecessary driver context checks 2016-05-04 01:33:02 +02:00
link-mso19 Remove unnecessary driver context checks 2016-05-04 01:33:02 +02:00
manson-hcs-3xxx Introduce standard implementation of the dev_list() callback 2016-05-03 21:25:16 +02:00
maynuo-m97 Drop SR_CONF_SET flag from SR_CONF_CONTINUOUS options 2016-05-03 21:49:02 +02:00
mic-985xx Drop SR_CONF_SET flag from SR_CONF_CONTINUOUS options 2016-05-03 21:49:02 +02:00
motech-lps-30x Introduce standard implementation of the dev_list() callback 2016-05-03 21:25:16 +02:00
norma-dmm Introduce standard implementation of the dev_list() callback 2016-05-03 21:25:16 +02:00
openbench-logic-sniffer Introduce standard implementation of the dev_list() callback 2016-05-03 21:25:16 +02:00
pipistrello-ols Introduce standard implementation of the dev_list() callback 2016-05-03 21:25:16 +02:00
rigol-ds Introduce standard implementation of the dev_list() callback 2016-05-03 21:25:16 +02:00
saleae-logic16 Introduce standard implementation of the dev_list() callback 2016-05-03 21:25:16 +02:00
scpi-pps Drop SR_CONF_SET flag from SR_CONF_CONTINUOUS options 2016-05-03 21:49:02 +02:00
serial-dmm Introduce standard implementation of the dev_list() callback 2016-05-03 21:25:16 +02:00
sysclk-lwla Remove unnecessary driver context checks 2016-05-04 01:33:02 +02:00
teleinfo Introduce standard implementation of the dev_list() callback 2016-05-03 21:25:16 +02:00
testo Remove unnecessary driver context checks 2016-05-04 01:33:02 +02:00
tondaj-sl-814 Introduce standard implementation of the dev_list() callback 2016-05-03 21:25:16 +02:00
uni-t-dmm Introduce standard implementation of the dev_list() callback 2016-05-03 21:25:16 +02:00
uni-t-ut32x Remove unnecessary driver context checks 2016-05-04 01:33:02 +02:00
victor-dmm Remove unnecessary driver context checks 2016-05-04 01:33:02 +02:00
yokogawa-dlm Introduce standard implementation of the dev_list() callback 2016-05-03 21:25:16 +02:00
zeroplus-logic-cube Introduce standard implementation of the dev_list() callback 2016-05-03 21:25:16 +02:00