while ((ep = readdir(dp)) && list_idx < MAX_HDAPS_DEVICES) {
/* This next test covers "." and ".." too. */
if (hdaps_device_exists(ep->d_name)) {
while ((ep = readdir(dp)) && list_idx < MAX_HDAPS_DEVICES) {
/* This next test covers "." and ".." too. */
if (hdaps_device_exists(ep->d_name)) {