@@ -602,7 +602,7 @@ impl<C: Chip> Process for ProcessStandard<'_, C> {
602602 // A process is allowed to pass any pointer if the buffer length is 0,
603603 // as to revoke kernel access to a memory region without granting access
604604 // to another one
605- if size == 0 {
605+ let res = if size == 0 {
606606 // Clippy complains that we're dereferencing a pointer in a public
607607 // and safe function here. While we are not dereferencing the
608608 // pointer here, we pass it along to an unsafe function, which is as
@@ -650,15 +650,15 @@ impl<C: Chip> Process for ProcessStandard<'_, C> {
650650 // We encapsulate the unsafe here on the condition in the TODO
651651 // above, as we must ensure that this `ReadWriteProcessBuffer` will
652652 // be the only reference to this memory.
653- let res = match process_buffer {
653+ match process_buffer {
654654 Some ( Ok ( process_buffer) ) => return Ok ( process_buffer) ,
655655 _ => return Err ( ErrorCode :: INVAL ) ,
656- } ;
657- dwt . stop ( ) ;
658- let count = dwt. count ( ) ;
659- crate :: debug! ( "[EVAL] build_readwrite_process_buffer {:?}" , count) ;
660- res
661- }
656+ }
657+ } ;
658+ dwt. stop ( ) ;
659+ let count = dwt . count ( ) ;
660+ crate :: debug! ( "[EVAL] build_readwrite_process_buffer {:?}" , count ) ;
661+ res
662662 }
663663
664664 #[ allow( clippy:: not_unsafe_ptr_arg_deref) ]
0 commit comments