aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-02-28 22:55:16 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2017-03-11 15:41:51 +0100
commite4ff28a31b0cfd1821d0a7418aba5f71a1cffb8c (patch)
tree1abedfa7419d4debce939c78f71a676dd232dfaa
parent29375e7953041766de7c44ea5574cf80d5916e41 (diff)
downloadlibnitrokey-e4ff28a31b0cfd1821d0a7418aba5f71a1cffb8c.tar.gz
libnitrokey-e4ff28a31b0cfd1821d0a7418aba5f71a1cffb8c.tar.bz2
Remove obsolete comments
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r--device.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/device.cc b/device.cc
index ddbfe85..35e7a78 100644
--- a/device.cc
+++ b/device.cc
@@ -107,13 +107,10 @@ int Device::recv(void *packet) {
throw DeviceNotConnected("Attempted HID receive on an invalid descriptor.");
}
- // FIXME extract error handling and repeating to parent function in
- // device_proto:192
for (;;) {
status = (hid_get_feature_report(mp_devhandle, (unsigned char *)(packet),
HID_REPORT_SIZE));
- // FIXME handle getting libhid error message somewhere else
auto pwherr = hid_error(mp_devhandle);
std::wstring wherr = (pwherr != nullptr) ? pwherr : L"No error message";
std::string herr(wherr.begin(), wherr.end());