]> sigrok.org Git - libsigrok.git/commit
sr_driver_scan(): Improve checks.
authorUwe Hermann <redacted>
Mon, 28 Jan 2013 19:00:54 +0000 (20:00 +0100)
committerUwe Hermann <redacted>
Tue, 29 Jan 2013 11:56:02 +0000 (12:56 +0100)
commit4b97c74e0b5c19ad0ee04620b618461248ab69d7
treeec002090a6fbfbf31ffb1e3f067318e5d7132f42
parentc0eea11c4535e071c72b357fa7e2d1288104c134
sr_driver_scan(): Improve checks.

Check the relevant arguments for != NULL before calling the actual
driver-specific function, so that the driver can safely assume those
arguments are non-NULL. This removes the need to duplicate these
checks in every driver.

Also, do some minor whitespace and consistency improvements.
13 files changed:
hardware/asix-sigma/asix-sigma.c
hardware/chronovu-la8/api.c
hardware/colead-slm/api.c
hardware/demo/demo.c
hardware/hantek-dso/api.c
hardware/lascar-el-usb/api.c
hardware/nexus-osciprime/api.c
hardware/openbench-logic-sniffer/api.c
hardware/rigol-ds1xx2/api.c
hardware/tondaj-sl-814/api.c
hardware/victor-dmm/api.c
hardware/zeroplus-logic-cube/zeroplus.c
hwdriver.c