From 36c09e1dbc9a6d98a9feb546ede6fc72d7d9d781 Mon Sep 17 00:00:00 2001 From: Will Greenberg Date: Fri, 23 Feb 2024 10:54:51 -0800 Subject: [PATCH] diag_device: rm unused initialization tracker --- lib/src/diag_device.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/src/diag_device.rs b/lib/src/diag_device.rs index 3737379..9de601f 100644 --- a/lib/src/diag_device.rs +++ b/lib/src/diag_device.rs @@ -71,7 +71,6 @@ const DIAG_IOCTL_SWITCH_LOGGING: u64 = 7; pub struct DiagDevice { file: File, - fully_initialized: bool, read_buf: Vec, use_mdm: i32, } @@ -92,7 +91,6 @@ impl DiagDevice { Ok(DiagDevice { read_buf: vec![0; BUFFER_LEN], file: diag_file, - fully_initialized: false, use_mdm, }) } @@ -206,7 +204,6 @@ impl DiagDevice { } } - self.fully_initialized = true; Ok(()) } }