@@ -2133,7 +2133,7 @@ impl Cage {
21332133 Inode :: CharDev ( ref char_inode_obj) => {
21342134 // The `_write_chr_file` helper function typically does not write
21352135 // anything to the device and simply returns the bytes count.
2136- self . _write_chr_file ( & char_inode_obj, buf , count)
2136+ self . _write_chr_file ( & char_inode_obj, count)
21372137 }
21382138
21392139 // A Sanity check is added to make sure that there is no such case when the
@@ -2380,7 +2380,7 @@ impl Cage {
23802380 Inode :: CharDev ( ref char_inode_obj) => {
23812381 // The `_write_chr_file` helper function typically does not write
23822382 // anything to the device and simply returns the bytes count.
2383- self . _write_chr_file ( & char_inode_obj, buf , count)
2383+ self . _write_chr_file ( & char_inode_obj, count)
23842384 }
23852385
23862386 // A Sanity check is added to make sure that there is no such case when the
@@ -2433,7 +2433,7 @@ impl Cage {
24332433 /// ### Panics
24342434 ///
24352435 /// This function does not cause any panics.
2436- fn _write_chr_file ( & self , inodeobj : & DeviceInode , _buf : * const u8 , count : usize ) -> i32 {
2436+ fn _write_chr_file ( & self , inodeobj : & DeviceInode , count : usize ) -> i32 {
24372437 // Writes to any of these device files transparently succeed while doing
24382438 // nothing. The data passed to them for writing is simply discarded.
24392439 match inodeobj. dev {
0 commit comments