mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-29 08:59:59 -07:00
diag_device: rm 0 byte read warning
This commit is contained in:
@@ -69,9 +69,7 @@ impl DiagReader for DiagDevice {
|
||||
let mut bytes_read;
|
||||
loop {
|
||||
bytes_read = self.file.read(&mut self.read_buf)?;
|
||||
if bytes_read == 0 {
|
||||
println!("read 0 bytes from /dev/diag, retrying...");
|
||||
} else {
|
||||
if bytes_read > 0 {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user