File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ impl SdMmcDriver {
1717 /// controller's register block and that no other code is concurrently
1818 /// accessing the same hardware.
1919 pub unsafe fn new ( base : usize ) -> Self {
20- Self ( SdMmc :: new ( base) )
20+ Self ( unsafe { SdMmc :: new ( base) } )
2121 }
2222}
2323
@@ -49,7 +49,7 @@ impl BlockDriverOps for SdMmcDriver {
4949 }
5050
5151 // check if block id exceeds device capacity
52- if block_id. saturating_add ( blocks. len ( ) as u64 ) > self . 0 . num_blocks ( ) {
52+ if block_id. saturating_add ( blocks. len ( ) as u64 ) > self . 0 . num_blocks ( ) {
5353 return Err ( DevError :: InvalidParam ) ;
5454 }
5555
@@ -70,7 +70,7 @@ impl BlockDriverOps for SdMmcDriver {
7070 }
7171
7272 // check if block id exceeds device capacity
73- if block_id. saturating_add ( blocks. len ( ) as u64 ) > self . 0 . num_blocks ( ) {
73+ if block_id. saturating_add ( blocks. len ( ) as u64 ) > self . 0 . num_blocks ( ) {
7474 return Err ( DevError :: InvalidParam ) ;
7575 }
7676
You can’t perform that action at this time.
0 commit comments