From: Pedro Yudi Honda <[email protected]> In gsp/commands.rs, remove unused `transmute::FromBytes` implementation.
Signed-off-by: Pedro Yudi Honda <[email protected]> --- drivers/gpu/nova-core/gsp/commands.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/gpu/nova-core/gsp/commands.rs b/drivers/gpu/nova-core/gsp/commands.rs index f84de9f4f045..a3c0b7fa3b9e 100644 --- a/drivers/gpu/nova-core/gsp/commands.rs +++ b/drivers/gpu/nova-core/gsp/commands.rs @@ -12,10 +12,7 @@ device, pci, prelude::*, - transmute::{ - AsBytes, - FromBytes, // - }, // + transmute::AsBytes// }; use crate::{ @@ -149,10 +146,6 @@ fn init_variable_payload( /// Message type for GSP initialization done notification. struct GspInitDone; -// SAFETY: `GspInitDone` is a zero-sized type with no bytes, therefore it -// trivially has no uninitialized bytes. -unsafe impl FromBytes for GspInitDone {} - impl MessageFromGsp for GspInitDone { const FUNCTION: MsgFunction = MsgFunction::GspInitDone; type InitError = Infallible; -- 2.34.1
