Browse Source

remove unnecessary warnings and impls

Samuka007 5 months ago
parent
commit
149fc8377c
2 changed files with 0 additions and 5 deletions
  1. 0 4
      kernel/src/driver/block/virtio_blk.rs
  2. 0 1
      kernel/src/driver/net/irq_handle.rs

+ 0 - 4
kernel/src/driver/block/virtio_blk.rs

@@ -407,10 +407,6 @@ impl Device for VirtIOBlkDevice {
     fn set_dev_parent(&self, parent: Option<Weak<dyn Device>>) {
         self.inner().device_common.parent = parent;
     }
-
-    fn attribute_groups(&self) -> Option<&'static [&'static dyn AttributeGroup]> {
-        None
-    }
 }
 
 impl KObject for VirtIOBlkDevice {

+ 0 - 1
kernel/src/driver/net/irq_handle.rs

@@ -23,7 +23,6 @@ impl IrqHandler for DefaultNetIrqHandler {
         _dynamic_data: Option<Arc<dyn IrqHandlerData>>,
     ) -> Result<IrqReturn, SystemError> {
         // poll_ifaces_try_lock_onetime().ok();
-        log::warn!("DefaultNetIrqHandler: poll_ifaces_try_lock_onetime -> poll_ifaces");
         poll_ifaces();
         Ok(IrqReturn::Handled)
     }